[jboss-cvs] JBossAS SVN: r61739 - branches/Branch_4_2/messaging/src/main/org/jboss/mq.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Mar 27 11:35:52 EDT 2007
Author: adrian at jboss.org
Date: 2007-03-27 11:35:52 -0400 (Tue, 27 Mar 2007)
New Revision: 61739
Modified:
branches/Branch_4_2/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_2/messaging/src/main/org/jboss/mq/Connection.java
===================================================================
--- branches/Branch_4_2/messaging/src/main/org/jboss/mq/Connection.java 2007-03-27 14:22:32 UTC (rev 61738)
+++ branches/Branch_4_2/messaging/src/main/org/jboss/mq/Connection.java 2007-03-27 15:35:52 UTC (rev 61739)
@@ -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