Stopping JXTA problem!
I have developed an application that uses JXTA but I need to stop it and start it when desired. This is the code I use for stopping the application:
netPeerGroup = null;
This code stops jxta, but I doesn't stop all the threads created by JXTA. I have several threads still alive once JXTA is stopped. For example:
ThreadedMessenger for tcp://188.8.131.52
ThreadedMessenger for http://184.108.40.206
Endpoint Destinations GC
EndpointRouter Timer for urn:jxta:jxta-NetGroup
BlockingMessenger self destruct timer
Due to this threads, if I start again JXTA from my application, I am not able to connect to rendezvous peers and JXTA doesn't work properly.
Is there any way of stopping these JXTA threads without stopping the JVM?
Thanks in advance