hi all, 

I have a client connector to communicate to my peer. I have a listener 
registered in case the communication with the peer is lost. When I reboot the 
peer, the handleConnectionException API in the client side is invoked. In this, 
I disconnect the client:

client.disconnect();

Would this be sufficient? The reason I am asking this question is because, even 
after above call is done, I see the handleConnectionException method is called 
for every ping period. 

I noticed that there is another method in client object - 
removeConnectionListener. I am making the code changes in the handler to call 
this method as well. 

Is there anything else I should be doing to make sure that the listener is 
called only once when the connection is lost? It would be of great help if 
anyone could post the steps that have to be done for handling this scenario 
gracefully. 

Thanks
Saravanan

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983160#3983160

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983160
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to