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: TransportListener vs ExceptionListener
Date Thu, 08 Feb 2007 19:07:35 GMT
On 2/8/07, igor_b <igorbolic@gmail.com> wrote:
>
> Hello,
>
> i need to make notification to my user if connection to the server is
> dropped or couldn't be established during startup. I found out that i could
> use TransportListener or ExceptionListener interface.
>
> Can i really use either of them? If yes, what is the difference and which
> one is better?

If you are using failover: then use TransportListener - as when using
failover: connections going down is not an Exception (as failover can
recover silently from it). TransportListener also has more fine
grained callbacks such as being notified of when things are
reconnected etc

-- 

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

Mime
View raw message