mirror of
https://github.com/apache/activemq.git
synced 2025-02-16 15:08:10 +00:00
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
|
// lets check if we are already closed
|
||||||
getConnection();
|
getConnection();
|
||||||
try {
|
try {
|
||||||
getSessionPool().returnObject(this);
|
getSessionPool().returnObject(session);
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
throw JMSExceptionSupport.create("Failed to return session to pool: " + e, e);
|
throw JMSExceptionSupport.create("Failed to return session to pool: " + e, e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user