Hi,

I'm running JBoss AS 4.03 to perform some simulation work. I've got an MBean 
which spawns off various threads. Each thread in turn calls 
java.lang.Runtime.exec() to create a native process. Invocation of this works 
find. I can create processes all day long and interrupt my threads. However, if 
I call destroy() on a Process, which was created by a thread, held by the 
mbean, the JBoss AS shutdown hook is abruptly called and everything ends with:

[exec] 15:45:50,433 INFO  [Server] Runtime shutdown hook called, forceHalt: true
[exec] 15:45:50,433 INFO  [Server] JBoss SHUTDOWN: Undeploying all packages


Questions:
1. Is is ok (or at least permitted) to spawn threads and native Process objects 
from an MBean?
2. How does one go about forcefully destroying a spawned Process without 
killing the application server?

I would hate to move my process handling to a separate JVM outside of JBoss. 
Any suggestions?

Thanks,
Keith

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952137#3952137

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952137


_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to