Fix ClassCastException in pool

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@358598 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Guillaume Nodet 2005-12-22 18:01:52 +00:00
parent f899a8fc51
commit 3621f25504
1 changed files with 1 additions and 1 deletions

View File

@ -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);