This demo has shown how simple it is to integrate Java and .NET code. We accomplished it in three stages:
- Generate proxies to allow Java classes to access .NET classes. The proxies were
generated with a visual tool that allows you to explore which .NET classes are to be exposed to Java.
- Reference the Java proxy jar file from the Java development project by placing it in the build classpath,
and write the Java code that accesses the .NET classes. The Java classes access .NET classes transparently,
as if the .NET classes were themselves Java classes. JNBridgePro automatically manages the Java-.NET
communications and object lifecycles
- Configure JNBridgePro to specify the communications mechanism, and run the
integrated .NET and Java code. JNBridgePro can scale from in-process on the same machine
to cross-network via a simple configuration file change; your code remains untouched.
Download JNBridgePro to try this for yourself!
The sample code for this demo, and more, is included in the installation.
|