Space Objects


Can I implement my own custom serialization ?

You can implement the Externalizable interface on a Space class. When the Space is accessed remotely these methods will be used to serialize the object. They are not called when an embedded Space proxy is accessed.

We do not recommend the Space class to implement Externalizable The internals of the XAP serialization mechanism has been optimized to serialize the Space object in a very efficient manner. Users who want to customize this should implement Externalizable at the Space class property level. This is how XAP will leverage this as part of its own serialization mechanism.

You can use kryo and other serialization libraries. XAP is using it for example with the global HTTP session sharing functionality.