Are there any problems when calling methods over RMI when the server is running on an IBM JVM and the client on a Sun/Oracle JVM or vice versa.
In other words: Is the RMI protocol (not RMI-IIOP) in the Java specification and is it tested by the JCK?
I have found the documentation about the RMI protocol from Oracle but have not found a hint if the documentation is also valid for other JVM implementations.
RMI and CORBA(Common Object Request Broker Architecture) attempt to solve a problem that people thought was important in the early 1990s. However, today we can't consider RMI as modern technology and nowadays we have REST, SOAP as the de-facto standards for communicating with remote services.
Java Remote Method Invocation (RMI) allows you to write distributed objects using Java. This paper describes the benefits of RMI, and how you can connect it to existing and legacy systems as well as to components written in Java. RMI provides a simple and direct model for distributed computation with Java objects.
Source: Source compatibility concerns translating Java source code into class files including whether or not code still compiles at all. Binary: Binary compatibility is defined in The Java Language Specification as preserving the ability to link without error.
RMI stands for Remote Method Invocation. It is a mechanism that allows an object residing in one system (JVM) to access/invoke an object running on another JVM. RMI is used to build distributed applications; it provides remote communication between Java programs.
The RMI JRMP protocol is defined in the Java RMI Specification. That means it must be the same across all Java implementations, barring bugs, and barring non-Java implementations such as GNU CLASSPATH. The biggest problem you will encounter is mismatching serialVersionUIDs: you need to be careful to define them for all your own classes, and you need to avoid serializing JDK classes that aren't guaranteed to have stable serialized formats, e.g. Swing classes, as the Javadoc for every one of them tells you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With