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:
Robert Davies 2008-03-18 06:30:00 +00:00
parent 859397c18b
commit ec15e1c05a
1 changed files with 2 additions and 3 deletions

View File

@ -223,7 +223,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge {
} }
protected void triggerLocalStartBridge() throws IOException { protected void triggerLocalStartBridge() throws IOException {
Thread thead = new Thread() { ASYNC_TASKS.execute(new Runnable() {
public void run() { public void run() {
try { try {
startLocalBridge(); startLocalBridge();
@ -231,8 +231,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge {
serviceLocalException(e); serviceLocalException(e);
} }
} }
}; });
thead.start();
} }
protected void triggerRemoteStartBridge() throws IOException { protected void triggerRemoteStartBridge() throws IOException {