You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ff...@apache.org on 2008/10/24 05:47:39 UTC
svn commit: r707533 -
/servicemix/smx3/branches/servicemix-3.2/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java
Author: ffang
Date: Thu Oct 23 20:47:39 2008
New Revision: 707533
URL: http://svn.apache.org/viewvc?rev=707533&view=rev
Log:
[SM-1658]can't shundown container from jmx console
Modified:
servicemix/smx3/branches/servicemix-3.2/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java
Modified: servicemix/smx3/branches/servicemix-3.2/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java?rev=707533&r1=707532&r2=707533&view=diff
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java (original)
+++ servicemix/smx3/branches/servicemix-3.2/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java Thu Oct 23 20:47:39 2008
@@ -731,8 +731,12 @@
return true;
};
});
-
- 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) {