You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by solmyr72 <so...@yahoo.com> on 2008/08/06 10:11:43 UTC
InterruptedException at connetion.close()
Hi,
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
conn.close();
}
}
It seems that if MyThread is interrupted (using thread.interrupt), the
'close()' operation aborts with a java.io.InterruptedException.
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: http://www.nabble.com/InterruptedException-at-connetion.close%28%29-tp18846291p18846291.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: InterruptedException at connetion.close()
Posted by ActiveMQ2011User <ni...@unister.de>.
I'm having the same problem with ActiveMQ 5.4.2.
--
View this message in context: http://activemq.2283324.n4.nabble.com/InterruptedException-at-connetion-close-tp2345510p3225478.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: InterruptedException at connetion.close()
Posted by Hiram Chirino <hi...@hiramchirino.com>.
Could you create a JIRA issue for that please:
http://issues.apache.org/activemq/browse/AMQ
On Wed, Aug 6, 2008 at 4:11 AM, solmyr72 <so...@yahoo.com> wrote:
>
> Hi,
>
> 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
> conn.close();
> }
> }
>
> It seems that if MyThread is interrupted (using thread.interrupt), the
> 'close()' operation aborts with a java.io.InterruptedException.
> 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: http://www.nabble.com/InterruptedException-at-connetion.close%28%29-tp18846291p18846291.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
--
Regards,
Hiram
Blog: http://hiramchirino.com
Open Source SOA
http://open.iona.com