activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Know the session was closed
Date Mon, 09 Apr 2007 22:26:04 GMT
On 4/9/07, astepanenko <andrew.stepanenko@gmail.com> wrote:
>
> Hello,
>
> is there a way to know that Session was closed, something like isClosed()
> method? I cannot find one.
> So, currently the only way to know the session was closed (either
> intentionally or due to a network problem) is to get an Exception trying to
> use the Session.

There's a protected closed flag already on ActiveMQSession. If you
want to submit a patch it'd be easy to expose this as a public
property
http://activemq.apache.org/contributing.html

-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message