It's started programatically.
This is how the code looks like:
cacheManager = new DefaultCacheManager("infinispan-config.xml"); cacheManager.addListener(new ClusterIdGenerator().getRankCalculatorListener()); cacheManager.getGlobalConfiguration().fluent().serialization().addAdvancedExternalizer(ExternalizerIds.MEMCACHED_CACHE_VALUE(), new MemcachedValue.Externalizer()); cacheManager.start(); cache = cacheManager.getCache(); cache.start(); memcacheServer = new MemcachedServer(); Properties properties = new Properties(); properties.setProperty("infinispan.server.port","11311"); memcacheServer.start(properties, cacheManager);
Ive tried with 2 different clients in 2 different languages (spymemchaced (java) and memcacheclient (ruby)), both with the same result
1 of 1 people found this helpful
You shouldn't need to instantiate the ClusterIdGenerator cos the MemcachedServer already does it when you call start, and already associates it with the CacheManager.
How many nodes are you running here? If you're running two or more, maybe the problem is that the cluster is not forming in the first place because the version is only updated upon a view change.
Check the logs to see if the cluster is forming.
What Infinispan version are you using?