[jboss-cvs] JBoss Messaging SVN: r2585 - trunk/src/main/org/jboss/jms/client/delegate.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Apr 18 10:10:29 EDT 2007


Author: timfox
Date: 2007-04-18 10:10:28 -0400 (Wed, 18 Apr 2007)
New Revision: 2585

Modified:
   trunk/src/main/org/jboss/jms/client/delegate/DelegateSupport.java
Log:
Another tweak to catching remoting exceptions



Modified: trunk/src/main/org/jboss/jms/client/delegate/DelegateSupport.java
===================================================================
--- trunk/src/main/org/jboss/jms/client/delegate/DelegateSupport.java	2007-04-18 14:02:35 UTC (rev 2584)
+++ trunk/src/main/org/jboss/jms/client/delegate/DelegateSupport.java	2007-04-18 14:10:28 UTC (rev 2585)
@@ -229,12 +229,12 @@
          {
             do
             {
-               if ((t instanceof CannotConnectException) ||
-                        (t instanceof IOException) ||
-                        (t instanceof ConnectionFailedException))
+               if ((initCause instanceof CannotConnectException) ||
+                        (initCause instanceof IOException) ||
+                        (initCause instanceof ConnectionFailedException))
                {
-                  log.warn("Captured Exception:" + t, t);
-                  return new MessagingNetworkFailureException((Exception)t);
+                  log.warn("Captured Exception:" + initCause, initCause);
+                  return new MessagingNetworkFailureException((Exception)initCause);
                }
                initCause = initCause.getCause();
             }




More information about the jboss-cvs-commits mailing list