2 Replies Latest reply on Feb 17, 2016 8:31 AM by Vladimir Dzhuvinov

    How to start a cache from tomcat on context initialization?

    Tejas Shah Novice



      Our clients are going to access the caching service remotely using the RemoteCache API, but we would like to start the RemoteCacheManager from Tomcat. In order to accomplish that, what should be done? Assume that I have added all the dependencies in my web application. I just want to start the cache from the Tomcat when the ServletContext gets initialized. I would stop the cache when the context will get destroyed. What exactly should be written ?? since I can not write new RemoteCache there, as jars are in that same web application.


      Also If I do something like this, the server nodes will take up the memory from tomcat??