This closes #271

This commit is contained in:
Clebert Suconic 2015-12-16 21:29:34 -05:00
commit 3272999659
1 changed files with 3 additions and 1 deletions

View File

@ -463,7 +463,9 @@ public class ActiveMQActivation {
}
Object fac = ctx.lookup(spec.getConnectionFactoryLookup());
if (fac instanceof ActiveMQConnectionFactory) {
factory = (ActiveMQConnectionFactory) fac;
// This will clone the connection factory
// to make sure we won't close anyone's connection factory when we stop the MDB
factory = ActiveMQJMSClient.createConnectionFactory(((ActiveMQConnectionFactory) fac).toURI().toString(), "internalConnection");
}
else {
factory = ra.newConnectionFactory(spec);