-
1. Re: Infinispan 6 server on tomcat 7
nadirx Dec 12, 2013 3:50 AM (in response to rstrazza)Sure it is possible:
just pull the infinispan-server-hotrod jar (and all its transitive deps) into your WAR and configure/start/stop the hotrod server in a servletcontextlistener.
Why are you not considering using the infinispan-server distro ? Unless you also want to directly access the embedded caches, it is a much more convenient and robust solution.
Tristan
-
2. Re: Infinispan 6 server on tomcat 7
rstrazza Dec 12, 2013 11:08 AM (in response to nadirx)I'm actually doing exactly that and this is the code on the contextInitialized to start the cache manager in cluster mode:
cacheManager = new DefaultCacheManager("infinispan.xml");
cacheManager.getCache("msg-cache");
and was looking to try something as explained below), so all named caches are started and join the cluster, is that still the right approach ?
https://docs.jboss.org/author/display/ISPN/Dynamically+Start+and+Stop+Clustered+Cache
The reason for Tomcat is because it would be a dedicated cache server (multiple nodes) running only Infinispan - sort of many app nodes in cluster on distributed mode with a cache server cluster running on separated infra. I know this is very high level, but wondering if you would you have any suggestions.
Thanks a lot!