How can we clear ehcache on a remote server?
My application is running in staging environment (host 111.22.3.44 and port 17000) and I want to write an utility method that can connect to a given host:port and clear the ehcache of my App. This utility should to work in Windows as well as Linux.
I use JConsole.exe utility to flush the cache of ehcache created in stage-server, but there is a situation where I need to do it programatically.
Hurrey…:) I got the solution for clearing
ehcacheon a remote environment. Here, I have written a Java utility method that will flush outehcacheof a given remote machine that is specified by host name and port.