servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r707531 - /servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java
Date Fri, 24 Oct 2008 03:39:29 GMT
Author: ffang
Date: Thu Oct 23 20:39:29 2008
New Revision: 707531

URL: http://svn.apache.org/viewvc?rev=707531&view=rev
Log:
[SM-1658]can't shundown container from jmx console

Modified:
    servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java

Modified: servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java?rev=707531&r1=707530&r2=707531&view=diff
==============================================================================
--- servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java
(original)
+++ servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java
Thu Oct 23 20:39:29 2008
@@ -744,7 +744,11 @@
             };
         });
 
-        executorFactory.createExecutor("ServiceMix -- shutting down registry").execute(shutdown);
+        //use daemon thread to run this shutdown task
+        //fix the container hang when shutdown container from the jmx console
+        Thread daemonShutDownThread = new Thread(shutdown);
+        daemonShutDownThread.setDaemon(true);
+        daemonShutDownThread.start();
         
         try {
             if (forceShutdown > 0) {



Mime
View raw message