activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r638234 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java
Date Tue, 18 Mar 2008 06:30:15 GMT
Author: rajdavies
Date: Mon Mar 17 23:30:00 2008
New Revision: 638234

URL: http://svn.apache.org/viewvc?rev=638234&view=rev
Log:
Use ThreadPool for starting local services

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java?rev=638234&r1=638233&r2=638234&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java
Mon Mar 17 23:30:00 2008
@@ -223,7 +223,7 @@
     }
 
     protected void triggerLocalStartBridge() throws IOException {
-        Thread thead = new Thread() {
+        ASYNC_TASKS.execute(new Runnable() {
             public void run() {
                 try {
                     startLocalBridge();
@@ -231,8 +231,7 @@
                     serviceLocalException(e);
                 }
             }
-        };
-        thead.start();
+        });
     }
 
     protected void triggerRemoteStartBridge() throws IOException {



Mime
View raw message