activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiram Chirino" <hi...@hiramchirino.com>
Subject Re: InterruptedException at connetion.close()
Date Fri, 15 Aug 2008 12:03:24 GMT
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 <solmyr72@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

Mime
View raw message