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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Mar 27 11:36:25 EDT 2007


Author: adrian at jboss.org
Date: 2007-03-27 11:36:25 -0400 (Tue, 27 Mar 2007)
New Revision: 61740

Modified:
   branches/Branch_4_0/messaging/src/main/org/jboss/mq/Connection.java
Log:
[JBAS-4256] - Trigger the exception listener when the client does not initiate the close request

Modified: branches/Branch_4_0/messaging/src/main/org/jboss/mq/Connection.java
===================================================================
--- branches/Branch_4_0/messaging/src/main/org/jboss/mq/Connection.java	2007-03-27 15:35:52 UTC (rev 61739)
+++ branches/Branch_4_0/messaging/src/main/org/jboss/mq/Connection.java	2007-03-27 15:36:25 UTC (rev 61740)
@@ -338,7 +338,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.get() == 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