From 1cbdb20563e406d450a9632ccd503d04de49ff06 Mon Sep 17 00:00:00 2001 From: Rajith Muditha Attapattu Date: Tue, 3 May 2011 22:46:16 +0000 Subject: 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/qpid@1099288 13f79535-47bb-0310-9956-ffa450edef68 --- java/common/src/main/java/org/apache/qpid/transport/Session.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'java/common/src') diff --git a/java/common/src/main/java/org/apache/qpid/transport/Session.java b/java/common/src/main/java/org/apache/qpid/transport/Session.java index b3c335ae68..862c37283b 100644 --- a/java/common/src/main/java/org/apache/qpid/transport/Session.java +++ b/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); } } -- cgit v1.2.1