As I know CORBA and J-Integra (written with CORBA) have huge overhead as
based on RPC (or COM). The best way is to use pure JNI. We have started
developing tools to automate JNI code writing. The first version is
available at
http://simtel.net/product.php[id]90910[SiteID]simtel.net
You can use the code generated in Managed C++.
In the next version of this Add-In will generate managed wrapper classes in
C#.
We also plan to add options:
- method and field wrapper filtering (to make JNI code more compact);
- implementing native method in OO manner;
- generating JNI wrappers that implement any Java interface in C++/C#
(without java coding).
"Geoff" <ca****@interno de.on.net> wrote in message
news:43******** @duster.adelaid e.on.net...
What is the current best way to access .net class / methods from within
java. We are currently evaluating JNBridge, which is a great product but
is a little overkill for this project. CORBA is another option but have
not found any really good examples. Web services will be to slow as large
amounts of data will need to be transferred between the Java and .NET
platforms.
Why we want to do this?
We are working on combining several enviromental models written in .NET
with a Agent Based Modelling platform written in Java. Recoding the .NET
c# to Java is not really an option as we hope to have the systems evolve
independant of each other.
Any help greatly appreciated.