[ARTEMIS-220] Artemis RA does not close its connection factories when it is stopped.
in stop(), close the knowConnectionFactories before clearing the collection. JIRA: https://issues.apache.org/jira/browse/ARTEMIS-220
This commit is contained in:
parent
20006b6e9d
commit
c1aaa562c8
|
@ -275,6 +275,9 @@ public class ActiveMQResourceAdapter implements ResourceAdapter, Serializable {
|
|||
|
||||
managedConnectionFactories.clear();
|
||||
|
||||
for (ActiveMQConnectionFactory knownConnectionFactory : knownConnectionFactories.values()) {
|
||||
knownConnectionFactory.close();
|
||||
}
|
||||
knownConnectionFactories.clear();
|
||||
|
||||
if (defaultActiveMQConnectionFactory != null) {
|
||||
|
|
Loading…
Reference in New Issue