4 Replies Latest reply on Jan 3, 2012 7:34 AM by Seref Arikan

    Custom serializer for Hot Rod and server marshaller

    Seref Arikan Newbie


      I have a domain specific object model, with a custom marshaller/unmarshaller library optimized for this model. It is all in Java.

      I will be keeping instances of the domain model in a distributed grid, and I'll be accessing it via Hot Rod client. So far so good.


      However, these are complex objects, and I'd like to be able to use my existing marshaller library with Hot Rod. The documentation says that I should be able to plug my own Marshaller implementation, but the documentation always mentions the client. See https://docs.jboss.org/author/display/ISPN/Java+Hot+Rod+client#JavaHotRodclient-Marshallingdata

      The documentation even says that there is no need to change server marshaller if one chooses Avro for the Hot Rod client. See bottom of: https://docs.jboss.org/author/display/ISPN/Portable+Serialization+For+Hot+Rod+With+Apache+Avro


      I don't understand how this is possible. If I plug my own marshaller to the client, when Hot Rod server receives a byte array, how can it put that into the grid, if it does not unmarshall it? How can Lucene and everything else work if the object does not end up deserialized in the grid?