activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Hang when try to close JMS session
Date Thu, 10 May 2007 15:29:18 GMT
On 5/10/07, Steven Li <sli@clarity.com> wrote:
>
> My Application use ActiveMQ 4.1.1, the following problem regularly happens
> every two days:
>
> Faill to publish the JMS message. The warning messsgae is something like
> "WARNING : AcitveMQ Connection Worker:  tcp:///10.34.130.82:61616.
>
> Then my application try to recreate a connection. Before trying to recreate
> a new connection, we try to close the current session and connection first.
> However, it hangs (no return from the close() call) when call the
> session.close(), thus cause my application hangs.
>
> Any idea?

It shoulds like a socket is being dropped. If you use failover it will
automatically reconnect for you so you don't have to try close the
session/connection

http://activemq.apache.org/how-can-i-support-auto-reconnection.html
-- 
James
-------
http://macstrac.blogspot.com/

Mime
View raw message