Skip to main content

[JXSE 2.6] Shutdown

4 replies [Last post]
nahuele
Offline
Joined: 2010-09-28

Hi,

How can i cleanly shutdown the jxse platform?

I'm building a desktop app, connected (for now) only to the default PeerGroup (NetPeerGroup). After calling "networkManager.stopNetwork();" there are some jxse related threads still running:

1) Thread [New I/O server boss #1 (channelId: 9015524, /0.0.0.0:9701)] (Running)
2) Daemon Thread [IP Multicast Listener for mcast://224.0.1.85:1234] (Running)
3) Daemon Thread [Endpoint Destinations GC] (Running)
4) Daemon Thread [CM GC Timer] (Running)

It's needed to call another method to stop that threads?

Thanks!

Regards,
Nahuel

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
adamman71
Offline
Joined: 2007-01-31

Usually threads stop by themselves, but there is a known issue with the Jetty library (HTTP). I have updated the known issue page: http://kenai.com/projects/jxse/pages/KnownIssues

We already have a solution, but that will be for next release.

nahuele
Offline
Joined: 2010-09-28

Ok, thank you adamman !

Regards,
Nahuel

boylejohnr
Offline
Joined: 2008-10-27

I believe trunk will shut itself down cleanly.

https://jxta-jxse.dev.java.net/svn/jxta-jxse/trunk

nahuele
Offline
Joined: 2010-09-28

Ok, i'll try it.

Regards,
Nahuel