mirror of https://github.com/apache/activemq.git
Use ThreadPool for stopping services
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@638235 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ec15e1c05a
commit
44e6f7d0cd
|
@ -379,12 +379,11 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge {
|
||||||
LOG.warn("Network connection between " + localBroker + " and " + remoteBroker + " shutdown due to a remote error: " + error);
|
LOG.warn("Network connection between " + localBroker + " and " + remoteBroker + " shutdown due to a remote error: " + error);
|
||||||
}
|
}
|
||||||
LOG.debug("The remote Exception was: " + error, error);
|
LOG.debug("The remote Exception was: " + error, error);
|
||||||
new Thread() {
|
ASYNC_TASKS.execute(new Runnable() {
|
||||||
|
|
||||||
public void run() {
|
public void run() {
|
||||||
ServiceSupport.dispose(DemandForwardingBridgeSupport.this);
|
ServiceSupport.dispose(DemandForwardingBridgeSupport.this);
|
||||||
}
|
}
|
||||||
}.start();
|
});
|
||||||
fireBridgeFailed();
|
fireBridgeFailed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -532,11 +531,11 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge {
|
||||||
if (!disposed) {
|
if (!disposed) {
|
||||||
LOG.info("Network connection between " + localBroker + " and " + remoteBroker + " shutdown due to a local error: " + error);
|
LOG.info("Network connection between " + localBroker + " and " + remoteBroker + " shutdown due to a local error: " + error);
|
||||||
LOG.debug("The local Exception was:" + error, error);
|
LOG.debug("The local Exception was:" + error, error);
|
||||||
new Thread() {
|
ASYNC_TASKS.execute(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
ServiceSupport.dispose(DemandForwardingBridgeSupport.this);
|
ServiceSupport.dispose(DemandForwardingBridgeSupport.this);
|
||||||
}
|
}
|
||||||
}.start();
|
});
|
||||||
fireBridgeFailed();
|
fireBridgeFailed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue