Middleware Category Interview Question: Difference between RMI-IIOP and JRMP in terms of code downloading for Java objects
Both RMI-IIOP (Remote Method Invocation over Internet Inter-ORB Protocol) and JRMP (Java Remote Method Protocol) are techniques for invoking methods on objects located on remote servers in a Java environment. However, there is a difference in how they handle code downloading across an IIOP connection.
When using RMI-IIOP, the Java Virtual Machine (JVM) is required to download the code dynamically from the remote server to the client-side JVM. This allows for flexibility in updating and distributing code changes without requiring the client to have a complete copy of the code at all times. RMI-IIOP supports interoperability with CORBA (Common Object Request Broker Architecture) objects and is typically used in enterprise-level distributed applications.
On the other hand, JRMP uses a simpler approach where the client-side JVM must have the same class definitions as the server-side JVM beforehand. This means that the client must have a complete copy of the code before method invocations can take place. JRMP is more suitable for simpler client-server applications where interoperability with non-Java systems is not a requirement.
In summary, the key difference between RMI-IIOP and JRMP in terms of code downloading is that RMI-IIOP allows for dynamic code downloading from the remote server, while JRMP requires the client to have a complete copy of the code beforehand.
Please login or Register to submit your answer