You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Walace Rocha <wr...@mhave.com> on 2006/06/29 14:44:57 UTC

Failover does not raise JMSException

I develop an application that uses ActiveMQ.
I implemented the interface javax.jms.ExceptionListener to see when the
broker goes down to inform the user.
The problem is that now I am using the failover and it do not raise the
JMSException when the broker goes down.
I would like to know if exists another possibility to see when a broker is
down and when it is up again using the failover.
-- 
View this message in context: http://www.nabble.com/Failover-does-not-raise-JMSException-tf1867274.html#a5102037
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Failover does not raise JMSException

Posted by James Strachan <ja...@gmail.com>.
You can use the TransportListener to be notified when the transport
has been suspended & resumed and to see all exceptions and commands
which pass over the transport...

http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apache/activemq/transport/TransportListener.html

http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apache/activemq/ActiveMQConnection.html#addTransportListener(org.apache.activemq.transport.TransportListener)

On 6/29/06, Walace Rocha <wr...@mhave.com> wrote:
>
> I develop an application that uses ActiveMQ.
> I implemented the interface javax.jms.ExceptionListener to see when the
> broker goes down to inform the user.
> The problem is that now I am using the failover and it do not raise the
> JMSException when the broker goes down.
> I would like to know if exists another possibility to see when a broker is
> down and when it is up again using the failover.
> --
> View this message in context: http://www.nabble.com/Failover-does-not-raise-JMSException-tf1867274.html#a5102037
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


-- 

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