Chapter 6. Scenario: Synchronous stateful 267
necessary to leave the managed code environment during the call into the DLL.
The J2SE SDK provides a framework for doing this called the
Java Native
Interface
(JNI) framework.
The Java Native Interface allows you to call unmanaged, native code from within
the Java Virtual Machine and vice-versa. The Java Native Interface is analogous
to Interop.
As you can see, there are many similarities between J2EE and .NET.
Stateful remote invocation
The technologies for getting into and out of the respective runtime environments
of .NET and J2EE support local invocation. We are also concerned about
providing this interaction between processes and physical nodes.
Both J2EE and .NET provide mechanisms for remote ...