activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From artnaseef <...@artnaseef.com>
Subject Re: daemon setting in TCP transport options
Date Wed, 15 Jan 2014 18:47:59 GMT
A daemon thread in java is one that does not prevent the JVM from shutting
down.  Threads that are not daemons will prevent the JVM from shutting down
until they terminate.

So, if you want the TCP connection thread to keep the JVM alive until it is
stopped, then use it as a don't leave the daemon setting to false.  On the
other hand, if your JVM may need to terminate while an activemq TCP
connection is still active (because the JMS client - ie connection - doesn't
shutdown properly), then setting daemon to true will allow that to happen. 
For robustness, the best thing is to have the client shutdown cleanly.



--
View this message in context: http://activemq.2283324.n4.nabble.com/daemon-setting-in-TCP-transport-options-tp4676299p4676319.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message