Project: springxd
Issue XD-2761: Register only known classes with Kryo in PojoCodec
Currently PojoCodec calls kryo.register(Class type) on every ser/deser invocation. This fails with 1.1 because instances are pooled and a different instance may be used to serialize and deserialize. See https://github.com/EsotericSoftware/kryo#registration. The fix is to not register classes on the fly. Classes serialized by PojoCodec will not be registered by default. This will work but is less efficient. XD should provide an easy way to register types known to be serialized on the MessageBus (passed between modules)
Story points: 5