I'm trying to deploy Infinispan cluster where each node running embedded HotRod server :
new HotRodServer().start(new HotRodServerConfigurationBuilder().host("10.1.1.6").port(11322).build(),
new DefaultCacheManager("infinispan.xml"));
client :
remoteCache = new RemoteCacheManager().getCache("myCache");
client cfg:
infinispan.client.hotrod.server_list=10.1.1.6:11322
The problem is that remoteCache is empty although I'm sure the JPA loader defined in infinispan.xml does it's work and I see positive entities count in jconsole for myCache entry.
Am I missing something ?
Another question : how do I expose REST endpoint on HotRod server started this way ?
dependencies :
'org.infinispan:infinispan-server-hotrod:5.3.0.Final',
'org.infinispan:infinispan-core:5.3.0.Final',
'org.infinispan:infinispan-cachestore-jpa:5.3.0.Final',
'org.infinispan:infinispan-client-hotrod:5.3.0.Final',
Thanks