RE: Stopping Component in a Virtual Host

2010-04-20 Thread webpost
Hi Thierry, Thanks for the reply, i got it working on stopping without our Application. But when I add the code for our Application, it seems it can't fully exit the jvm. I tried it first without loadBalance.attach(/webservice/PEITCache, new

RE: Stopping Component in a Virtual Host

2010-04-20 Thread Thierry Boileau
Hello, it seems that non-daemon threads are still running. Could you check using the jstack utility (http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jstack.html)? You may have to shutdown the cache in your MainPEITCacheApplication#stop method (something like ccm.shutdown()). Best regards,

RE: Stopping Component in a Virtual Host

2010-04-20 Thread webpost
Hi Thierry, I had modify MainPEITCacheApplication to override the stop but still not stopping / MainPEITCacheApplication / public class MainPEITCacheApplication

RE: Stopping Component in a Virtual Host

2010-04-20 Thread Thierry Boileau
Hi Gerald, as you seem to use an auxiliary cache could you try something like RemoteCacheServerFactory.shutdownImpl( , Registry.REGISTRY_PORT ) before the shutdown of the cache manager? Or specify directly the host and port of the remote cache server. Bast regards, Thierry Boileau

RE: Stopping Component in a Virtual Host

2010-04-20 Thread webpost
Hi Thierry, Got it working now, it with the CompositeCacheManager, I just need to clean up everything. Thanks public class MainPEITCacheApplication extends Application {