Understanding the Relationship Between Java and .NET

The adapter run time has a Java Native Interface (JNI) implementation that uses the C++ language to call the Common Language Runtime (CLR) unmanaged host API, which initializes the runtime host. The runtime host loads the .NET Common Language Runtime instance into a process, creates an application domain within the process, and loads and executes user code within the application domain. The Java Virtual Machine (JVM) through the adapter is the initiator of the process but does not own it. However, when the JVM is shut down, the CLR instance will also shutdown. The iWay Java Native Interface (JNI) layer marshals data between Java and .NET during the life cycle of the adapter. The adapter life cycle may be shorter than the life cycle of the JVM. If the adapter is stopped or disconnected, communication with the hosted CLR instance is terminated. The CLR process will stay active until the JVM is terminated, even if iWay Service Manger is restarted.


iWay Software