RMI compatibility between JVM implementations

Are there any problems when calling methods on RMI when the server is running on the IBM JVM and client on the Sun / Oracle JVM or vice versa.

In other words: Is the RMI protocol (not RMI-IIOP) in the Java specification and is the JCK checked?

I found the RMI protocol documentation from Oracle, but did not find a hint if the documentation is also valid for other JVM implementations.

+4
source share
1 answer

JMI RMI is defined in the Java RMI specification. This means that it must be the same in all Java implementations, prohibit errors and prohibit implementations other than Java, such as GNU CLASSPATH. The biggest problem you will encounter is serialVersionUID mismatch: you need to be careful to define them for all your own classes, and you need to avoid serializing JDK classes that do not guarantee stable sequential formats, for example. Swing classes like Javadoc for each of them tells you.

+2
source

Source: https://habr.com/ru/post/1332667/


All Articles