I am using terracotta-ehcache spring version in my app . Currently I have to start terracotta server using the batch file start-tc-server.bat and it works as expected.
Now I have a need to start the terracotta server through java code rather than a batch file . I am using jboss as app server and I need to start/stop the terra cotta server when jboss starts/stops. Is there any way to achieve this using spring or through java code?
Please post your inputs/experiences related to the same.
thanks in advance
.Currently I am starting/stopping the terracotta server using start-tc-server.bat script file only. But now I have a need where I haveto start the terracotta server on my webserver e.g. jboss/tomcat startup.