[jboss-dev-forums] [Design of JMX on JBoss (JBoss/JMX)] - Abnormal shutdown of JBoss
jboss2005_01
do-not-reply at jboss.com
Mon Jun 11 03:16:43 EDT 2007
Hello everybody,
First of all, I am not sure if this is the correct forum to post this topic.
I guess this is related to the core functionality of the AS.
I am trying to develop a MBean that acts like a SMS sending/receiving service. At first sight, everything seems to work normal. But when I send the shutdown command to the application server (CTRL+C since it is a Windows machine) everything goes wrong. I get a very long output in the console with a bunch of JBoss Shutdown Hooks. It seems like JBoss is no longer able to shutdown normally in this case. The service uses SMSLib (http://smslib.sourceforge.net/) which communicates through the COM-port with a GSM modem. This library works fine in a stand-alone application.
I have the following questions:
1. What causes such a JBoss Shutdown Hook message in the console. Could this be caused by the fact that the SAR uses user threads?
2. My application needs to create user threads to listen at different JMS queues, is this the appropriate way to do so or is it better to retrieve user threads from a thread pool? If so, how can this be achieved.
Any response would be highly appreciated.
Below you will find an extract of the output generated by the application server.
| 2007-06-08 16:26:10,919 INFO [org.jboss.system.server.Server] Runtime shutdown hook called, forceHalt: true
| 2007-06-08 16:26:10,919 INFO [STDOUT] 911566 [JBoss Shutdown Hook] INFO org.jboss.system.server.Server - Runtime shutdown hook called, forceHalt: true
| 2007-06-08 16:26:10,919 INFO [org.jboss.system.server.Server] JBoss SHUTDOWN: Undeploying all packages
| 2007-06-08 16:26:10,919 INFO [STDOUT] 911566 [JBoss Shutdown Hook] INFO org.jboss.system.server.Server - JBoss SHUTDOWN: Undeploying all packages
| 2007-06-08 16:26:10,919 DEBUG [org.jboss.deployment.MainDeployer] Undeploying file:/D:/jboss-4.0.5.GA/server/default/deploy/deploy.last/, isShutdown=true
| 2007-06-08 16:26:10,919 INFO [STDOUT] 911566 [JBoss Shutdown Hook] DEBUG org.jboss.deployment.MainDeployer - Undeploying file:/D:/jboss-4.0.5.GA/server/default/deploy/deploy.last/, isShutdown=true
| 2007-06-08 16:26:10,919 DEBUG [org.jboss.deployment.MainDeployer] Stopping sub deployment: file:/D:/jboss-4.0.5.GA/server/default/deploy/deploy.last/SMSServer.sar/
| 2007-06-08 16:26:10,935 INFO [STDOUT] 911566 [JBoss Shutdown Hook] DEBUG org.jboss.deployment.MainDeployer - Stopping sub deployment: file:/D:/jboss-4.0.5.GA/server/default/deploy/deploy.last/SMSServer.sar/
| 2007-06-08 16:26:10,935 DEBUG [org.jboss.deployment.MainDeployer] Stopping sub deployment: file:/D:/jboss-4.0.5.GA/server/default/deploy/deploy.last/SMSServer.sar/smslib-2.1.4.jar
| 2007-06-08 16:26:10,935 INFO [STDOUT] 911582 [JBoss Shutdown Hook] DEBUG org.jboss.deployment.MainDeployer - Stopping sub deployment: file:/D:/jboss-4.0.5.GA/server/default/deploy/deploy.last/SMSServer.sar/smslib-2.1.4.jar
| 2007-06-08 16:26:10,935 DEBUG [org.jboss.deployment.SARDeployer] undeploying document file:/D:/jboss-4.0.5.GA/server/default/deploy/deploy.last/SMSServer.sar/
| 2007-06-08 16:26:10,935 INFO [STDOUT] 911582 [JBoss Shutdown Hook] DEBUG org.jboss.deployment.SARDeployer - undeploying document file:/D:/jboss-4.0.5.GA/server/default/deploy/deploy.last/SMSServer.sar/
| 2007-06-08 16:26:10,935 DEBUG [org.jboss.deployment.SARDeployer] stopping mbean tph.services:service=SMSServer
| 2007-06-08 16:26:10,935 INFO [STDOUT] 911582 [JBoss Shutdown Hook] DEBUG org.jboss.deployment.SARDeployer - stopping mbean tph.services:service=SMSServer
| 2007-06-08 16:26:10,935 DEBUG [org.jboss.system.ServiceController] stopping service: tph.services:service=SMSServer
| 2007-06-08 16:26:10,935 INFO [STDOUT] 911582 [JBoss Shutdown Hook] DEBUG org.jboss.system.ServiceController - stopping service: tph.services:service=SMSServer
| 2007-06-08 16:26:10,935 DEBUG [org.jboss.deployment.MainDeployer] Destroying sub deployment: file:/D:/jboss-4.0.5.GA/server/default/deploy/deploy.last/SMSServer.sar/
| 2007-06-08 16:26:10,935 INFO [STDOUT] 911582 [JBoss Shutdown Hook] DEBUG org.jboss.deployment.MainDeployer - Destroying sub deployment: file:/D:/jboss-4.0.5.GA/server/default/deploy/deploy.last/SMSServer.sar/
| 2007-06-08 16:26:10,935 DEBUG [org.jboss.deployment.MainDeployer] Destroying sub deployment: file:/D:/jboss-4.0.5.GA/server/default/deploy/deploy.last/SMSServer.sar/smslib-2.1.4.jar
| 2007-06-08 16:26:10,935 INFO [STDOUT] 911582 [JBoss Shutdown Hook] DEBUG org.jboss.deployment.MainDeployer - Destroying sub deployment: file:/D:/jboss-4.0.5.GA/server/default/deploy/deploy.last/SMSServer.sar/smslib-2.1.4.jar
| 2007-06-08 16:26:10,935 DEBUG [org.jboss.util.file.Files] Failed to delete dir: D:\jboss-4.0.5.GA\server\default\tmp\deploy\tmp20537smslib-2.1.4.jar
| 2007-06-08 16:26:10,935 INFO [STDOUT] 911582 [JBoss Shutdown Hook] DEBUG org.jboss.util.file.Files - Failed to delete dir: D:\jboss-4.0.5.GA\server\default\tmp\deploy\tmp20537smslib-2.1.4.jar
| 2007-06-08 16:26:10,935 DEBUG [org.jboss.deployment.DeploymentInfo] Could not delete file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp20537smslib-2.1.4.jar restart will delete it
| 2007-06-08 16:26:10,935 INFO [STDOUT] 911582 [JBoss Shutdown Hook] DEBUG org.jboss.deployment.DeploymentInfo - Could not delete file:/D:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp20537smslib-2.1.4.jar restart will delete it
| 2007-06-08 16:26:10,935 DEBUG [org.jboss.deployment.MainDeployer] Undeployed file:/D:/jboss-4.0.5.GA/server/default/deploy/deploy.last/SMSServer.sar/smslib-2.1.4.jar
| 2007-06-08 16:26:10,935 INFO [STDOUT] 911582 [JBoss Shutdown Hook] DEBUG org.jboss.deployment.MainDeployer - Undeployed file:/D:/jboss-4.0.5.GA/server/default/deploy/deploy.last/SMSServer.sar/smslib-2.1.4.jar
| 2007-06-08 16:26:10,935 DEBUG [org.jboss.deployment.SARDeployer] destroying mbean tph.services:service=SMSServer
| 2007-06-08 16:26:10,935 INFO [STDOUT] 911582 [JBoss Shutdown Hook] DEBUG org.jboss.deployment.SARDeployer - destroying mbean tph.services:service=SMSServer
| 2007-06-08 16:26:10,935 DEBUG [org.jboss.system.ServiceController] destroying service: tph.services:service=SMSServer
| 2007-06-08 16:26:10,935 INFO [STDOUT] 911582 [JBoss Shutdown Hook] DEBUG org.jboss.system.ServiceController - destroying service: tph.services:service=SMSServer
|
| And this goes on and on and on....
|
Greetings,
Kurt
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052987#4052987
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052987
More information about the jboss-dev-forums
mailing list