[jboss-cvs] JBossAS SVN: r62205 - branches/JBoss_4_0_3_SP1_CP/messaging/src/main/org/jboss/mq.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Apr 10 05:57:07 EDT 2007
Author: darran.lofthouse at jboss.com
Date: 2007-04-10 05:57:07 -0400 (Tue, 10 Apr 2007)
New Revision: 62205
Modified:
branches/JBoss_4_0_3_SP1_CP/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_CP/messaging/src/main/org/jboss/mq/Connection.java
===================================================================
--- branches/JBoss_4_0_3_SP1_CP/messaging/src/main/org/jboss/mq/Connection.java 2007-04-10 09:55:14 UTC (rev 62204)
+++ branches/JBoss_4_0_3_SP1_CP/messaging/src/main/org/jboss/mq/Connection.java 2007-04-10 09:57:07 UTC (rev 62205)
@@ -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