I finally got it working. First I used 
connection.setExceptionListener() function and the exception listener will 
indicate the error. Then I used a timer to reconnect until new connection is 
built. But another problem accurs. Although the new connection replaces the old 
connection (also called close() for the old connection), it seems the old 
connection still reports "ping timeout" exception although the new connection 
is working fine. So I set the exception listener as null and closed the 
connection immediately after receiving the connection exception. The "ping 
timeout" is gone. But I'm not sure whether it is the correct way. Anybody has 
any idea about this?

Steve


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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878648


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to