문제

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!

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top