Question

I see a lot of questions about if Kryo can be used to replace default JVM serialization that RMI uses, but nothing in the way of how to actually set it up. I've heard that Kryo is a "drop-in" replacement for JVM serialization, and not sure if that just means you can swap out some JARs from the runtime classpath (as is the case with SLF4J bindings, etc.), or something else.

So I ask: how do I get RMI using Kryo instead of the default JVM serialization that Java ships with? Thanks in advance!

Était-ce utile?

La solution

Kryo is not a drop-in replacement for Java Object Serialization: it is a new API; and RMI cannot be made to use it.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top