mirror of https://github.com/apache/activemq.git
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:
parent
f899a8fc51
commit
3621f25504
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue