mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@747030 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e01a937d29
commit
2de531cb52
|
@ -510,13 +510,13 @@ public class BrokerService implements Service {
|
|||
// to avoid timimg issue with discovery (spinning up a new instance)
|
||||
BrokerRegistry.getInstance().unbind(getBrokerName());
|
||||
VMTransportFactory.stopped(getBrokerName());
|
||||
stopper.stop(persistenceAdapter);
|
||||
if (broker != null) {
|
||||
stopper.stop(broker);
|
||||
}
|
||||
if (tempDataStore != null) {
|
||||
tempDataStore.close();
|
||||
}
|
||||
stopper.stop(persistenceAdapter);
|
||||
if (isUseJmx()) {
|
||||
MBeanServer mbeanServer = getManagementContext().getMBeanServer();
|
||||
if (mbeanServer != null) {
|
||||
|
|
|
@ -210,7 +210,7 @@ public class JPAPersistenceAdapter implements PersistenceAdapter {
|
|||
}
|
||||
|
||||
public void stop() throws Exception {
|
||||
if (entityManagerFactory != null) {
|
||||
if (entityManagerFactory != null && entityManagerFactory.isOpen()) {
|
||||
entityManagerFactory.close();
|
||||
}
|
||||
}
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -46,7 +46,7 @@
|
|||
<cglib-version>2.0</cglib-version>
|
||||
<commons-beanutils-version>1.6.1</commons-beanutils-version>
|
||||
<commons-collections-version>3.1</commons-collections-version>
|
||||
<openjpa-version>1.0.0</openjpa-version>
|
||||
<openjpa-version>1.2.0</openjpa-version>
|
||||
<commons-dbcp-version>1.2.2</commons-dbcp-version>
|
||||
<commons-httpclient-version>2.0.1</commons-httpclient-version>
|
||||
<commons-logging-version>1.1</commons-logging-version>
|
||||
|
|
Loading…
Reference in New Issue