On 10/06/2014 10:18 AM, bansalp wrote:
Hi,

I am trying to use TransportListener and have couple of questions.

I am using failover uri mechanism.

1. When does onException is called?
If using failover this would only be triggered if you configured a max reconnect attempts limit and that was exceed, otherwise you wouldn't see this except in the case of security exceptions.

2. When does onCommand is called?
Gives a view into openwire commands being processed, best to avoid this one.

3. How to know whether primary broker has stopped or failover  (or
connection with them has some problem) which causes calls to
transportInterupted?
Client has no idea the cause of the connection drop so there is no way to differentiate.


Thanks



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Question-on-TransportListener-tp4686170.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



--
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.b...@redhat.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/

Reply via email to