[jboss-cvs] JBossAS SVN: r62206 - branches/JBoss_4_0_3_SP1_CP05/messaging/src/main/org/jboss/mq.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Apr 10 05:58:43 EDT 2007


Author: darran.lofthouse at jboss.com
Date: 2007-04-10 05:58:43 -0400 (Tue, 10 Apr 2007)
New Revision: 62206

Modified:
   branches/JBoss_4_0_3_SP1_CP05/messaging/src/main/org/jboss/mq/Connection.java
Log:
ASPATCH-176 Trigger the exception listener when the client does not initiate the close request.

Modified: branches/JBoss_4_0_3_SP1_CP05/messaging/src/main/org/jboss/mq/Connection.java
===================================================================
--- branches/JBoss_4_0_3_SP1_CP05/messaging/src/main/org/jboss/mq/Connection.java	2007-04-10 09:57:07 UTC (rev 62205)
+++ branches/JBoss_4_0_3_SP1_CP05/messaging/src/main/org/jboss/mq/Connection.java	2007-04-10 09:58:43 UTC (rev 62206)
@@ -355,7 +355,9 @@
 	 */
    public void asynchClose()
    {
-      // This obviously did something at some point?
+      // If we receive a close and we did not initiate it, then fire the exception listener
+      if (closing == false)
+         asynchFailure("Asynchronous close from server.", new IOException("Close request from the server or transport layer."));
    }
 
    /**




More information about the jboss-cvs-commits mailing list