MessagePack Java 0.6.X does not use annotations (annotations) to serialize
If you can't add @ Message to your definition object but you still want to serialize it. You can use the register method to enable serialized objects in the class.
The following code is shown:
MessagePack msgpack = new MessagePack (); msgpack.register (MyMessage2.class)
For example, if the MyMessage2 class is included in an external library. You can't easily edit the source code by adding @ Message to the source code.
The register method allows for the automatic creation of a serializer and deserializer pair for MyMessage2.
You can serialize the object MyMessage2 after executing the aspect.
Https://www.cwiki.us/display/Serialization/QuickStart+For+MessagePack+Java+0.6.X