From 3621f25504d7c55203333615dd369bdc5f730b8f Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Thu, 22 Dec 2005 18:01:52 +0000 Subject: [PATCH] Fix ClassCastException in pool git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358598 13f79535-47bb-0310-9956-ffa450edef68 --- activemq-core/src/main/java/org/activemq/pool/SessionPool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/activemq/pool/SessionPool.java b/activemq-core/src/main/java/org/activemq/pool/SessionPool.java index 5ffcca03a7..1d9a5ab4a0 100644 --- a/activemq-core/src/main/java/org/activemq/pool/SessionPool.java +++ b/activemq-core/src/main/java/org/activemq/pool/SessionPool.java @@ -71,7 +71,7 @@ public class SessionPool implements PoolableObjectFactory { // lets check if we are already closed getConnection(); try { - getSessionPool().returnObject(this); + getSessionPool().returnObject(session); } catch (Exception e) { throw JMSExceptionSupport.create("Failed to return session to pool: " + e, e);