summaryrefslogtreecommitdiff
path: root/qpid/java/common/src
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2011-05-03 22:46:16 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2011-05-03 22:46:16 +0000
commit57cd30140c3b22186a1dc8358597923cdbf25c73 (patch)
tree14a522edfa0f2ced5d250f5a45d5c68a05f4d530 /qpid/java/common/src
parentf7dfeca78806072ef81ae561f31915a3a11b0e73 (diff)
downloadqpid-python-57cd30140c3b22186a1dc8358597923cdbf25c73.tar.gz
QPID-3233
If the underlying AMQP session gets closed, the JMS session is now notified along with details that caused the session closure. The JMS Session will throw an exception (with an error code and details) when a user accesses the closed session. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1099288 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/common/src')
-rw-r--r--qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java b/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java
index b3c335ae68..862c37283b 100644
--- a/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java
+++ b/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java
@@ -1031,7 +1031,8 @@ public class Session extends SessionInvoker
if(state == CLOSED)
{
- connection.removeSession(this);
+ connection.removeSession(this);
+ listener.closed(this);
}
}