I would like to use Kryo to (de-)serialize objects and send/receive them via JMS.
The problem I'm having is that both sides, sender and receiver, must register the classes with the same ID.
Kryo has a method register (Class type, int id)
that I use. Unfortunately id
is an int (as compared to long serialVersionUID
used by the Serializable interface). It would be nice if I could use serialVersionUID to register classes.
How do you guys use Kryo over the network?