Hi, thanks for the reply
I'm trying to mannualy load the session atribute in another application (not in wildfly server) with a hotrod client, since the infinispan utilizes the PROTOSTREAM to marshal the data
I believe that I need to provide a custom marshall to the SerializationContext, so I'm trying replicate the same steps that is implemented in wildfly, and also imported the wildfly-clustering-web-hotrod to reuse the classes:
//Load the cache:
RemoteCacheManager cacheManager = new RemoteCacheManager(builder.build());
RemoteCache<Object, Object> remoteCache = cacheManager.getCache("mycache");
//Setup the serializationContext
SerializationContext ctx = MarshallerUtil.getSerializationContext(cacheManager);
FileDescriptorSource fds = FileDescriptorSource.fromResources(this.getClass().getClassLoader(), "sessionkey.proto"); // same as org.wildfly.clustering.web.hotrod.session.coarse
ctx.registerMarshaller(new SessionKeyMarshaller<>(SessionAttributesKey.class, SessionAttributesKey::new, IdentifierMarshaller.BASE64)); // I also tried with the ISO and HEX
ctx.registerProtoFiles(fds);
// Trying to load the cache given a sessionID
SessionAttributesKey s = new SessionAttributesKey("bHuPNzQexya5QRi33EU7gk2fw_gwXtSDBufNEk86");
remoteCache.get(s);
The last step is returning null.
This is the right approach or am I missing something?