exiting a JMS application without calling System.exit()

Benjamin <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
Hi,

I've written a JMS client application that creates a separate listening thread
to listen for messages.  I've noticed that in order for the application to
successfully terminate, I have to explicitly call System.exit().

I've made sure that my listening thread has been terminated, and my session,
connection, context has been closed.

It seems that the call to create an InitialContext maintains a thread/connection
to the JMS connection that is not terminated unless System.exit() is called.

Does anybody know if this is the case ?

Regards,
-Ben 



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.