activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From solmyr72 <>
Subject InterruptedException at connetion.close()
Date Wed, 06 Aug 2008 08:11:43 GMT


I have a thread that opens up a connection, sends some messages, then closes
the connection:

class MyThread extends Thread{
   public void run(){
       Connection conn=... // get connection from ActiveMQConnectionFactory
       ... //  send some JMS messages

It seems that if MyThread is interrupted (using thread.interrupt), the
'close()' operation aborts with a 
This behavior is bad for our application. Is there a way to ask ActiveMQ to
ignore the interruption, and make an effort to close the connection anyway ? 

Thanks :)
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message