mirror of https://github.com/apache/activemq.git
Use ThreadPool for starting local services
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@638234 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
859397c18b
commit
ec15e1c05a
|
@ -223,7 +223,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge {
|
|||
}
|
||||
|
||||
protected void triggerLocalStartBridge() throws IOException {
|
||||
Thread thead = new Thread() {
|
||||
ASYNC_TASKS.execute(new Runnable() {
|
||||
public void run() {
|
||||
try {
|
||||
startLocalBridge();
|
||||
|
@ -231,8 +231,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge {
|
|||
serviceLocalException(e);
|
||||
}
|
||||
}
|
||||
};
|
||||
thead.start();
|
||||
});
|
||||
}
|
||||
|
||||
protected void triggerRemoteStartBridge() throws IOException {
|
||||
|
|
Loading…
Reference in New Issue