-
1. Re: How to configure AdvancedExternalizers with RemoteCaches?
gustavonalle Oct 2, 2017 2:57 AM (in response to jameslivingston)For remote caches you can use Externalizers, as described in Infinispan 9.1 User Guide
-
2. Re: How to configure AdvancedExternalizers with RemoteCaches?
jameslivingston Oct 2, 2017 5:57 PM (in response to gustavonalle)That means I need to use annotations on the classes I want to externalise, correct? Unfortunately I can't annotate those classes, hence wanting to use an AdvancedExternalizer. If I can't do that, I might have to turn then into byte arrays in the code storing them in the cache.
-
3. Re: How to configure AdvancedExternalizers with RemoteCaches?
rvansa Oct 3, 2017 4:17 AM (in response to jameslivingston)That's not the only option; you could implement org.jboss.marshaller.ClassExternalizerFactory, inherit from AbstractJBossMarshaller/GenericJBossMarshaller and register it using baseCfg.setClassExternalizerFactory(...) in marshaller constructor. Then you override the marshaller in Hot Rod client configuration. See also Marshalling non serializeable objects to a RemoteCache
-
4. Re: How to configure AdvancedExternalizers with RemoteCaches?
jameslivingston Oct 3, 2017 7:32 PM (in response to rvansa)Thanks, that seems to work well. I'd seen that before, but for some reason thought I couldn't access the configuration in a subclass.