Hi,
As far as I know, RemoteCacheManager configure the Marshaller via reflection i.e.
props.put("infinispan.client.hotrod.marshaller", "org.infinispan.client.hotrod.marshall.ApacheAvroMarshaller");
m = new RemoteCacheManager(props);
Now I want to create a customize ApacheAvroMarshaller (that optionally load in a JSON schema to serialize the custom object). I want to make that customized marhsaller to have an a method call load(JsonSchema) and then pass to the RemoteCacheManager. Is there anyway to do that?
Thanks,
think I may get the answer. There is a special constructor that takes in both Marshaller class and the Properties. One caveat is you may want to pass start = false, otherwise the RemoteCacheManager will load JBossMarshaller before loading your own marshaller.