How to invoke thread shutdown on JBoss/Weblogic shutdown.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Abhishek_Arun
Posted On:   Thursday, January 6, 2005 04:23 PM

I have few Java threads who are listening to JMS queues on JBoss/Weblogic. How do invoke these threads' shutdown is JBoss/Weblogic goes down? To be more specific how do I shutdown these threads when the JMS service goes down?
Right now my threads exits through a JMS topic, i.e. I send a QUIT message to a JMS topic to which these threads listen. When the threads get the QUIT message, they initiate their shutdown. Is there anyway I can send this QUIT message when JMS server is coming down or notify my listeners in any way that the server is coming down?

This is very urgent. Someone please HELP.
My id is abhishek.arun@pb.com

Re: How to invoke thread shutdown on JBoss/Weblogic shutdown.

Posted By:   Tom_Jenkinson  
Posted On:   Tuesday, January 18, 2005 04:22 AM

Abishek


JMS provides a facility called an ExceptionListener. Typically (though not neccesarily) an ExceptionListener will be invoked when the message server shuts down.


JMS providers vary in when they will invoke an ExceptionListener's onException method though I would imagine it be quite typical to be invoked when the server terminates.


Hope this helps,

Tom Jenkinson

Arjuna Technologies Limited

About | Sitemap | Contact