[JBoss-user] [Installation, Configuration Deployment] - Re: Why System.exit in MBean can not halt the JVM??
If I should have to write an application server, I would install a SecurityManager with an overwritten checkExit method, so nobody can halt the system just by calling System.exit() within deployed code ;-) Read this regarding threads (daemon threads) and the system exit. http://java.sun.com/j2se/1.3/docs/api/java/lang/Thread.html View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3896255#3896255 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3896255 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - Re: Why System.exit in MBean can not halt the JVM??
THX. But my purpose is to stop JBoss via calling System.exit(), not to prevent others to halt the JVM. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3896263#3896263 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3896263 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - Re: Why System.exit in MBean can not halt the JVM??
So why don't you call shutdown() on the MBean jboss.system.Server? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3896296#3896296 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3896296 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - Re: Why System.exit in MBean can not halt the JVM??
Because I must shutdown the JBoss when the my application server's initializaion is not complete. So far I don't know any other way to stop JBoss except calling System.exit(). But now, I will take your advice to try to use shutdown() method in org.jboss.system.Server. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3896311#3896311 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3896311 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - Re: Why System.exit in MBean can not halt the JVM??
yeah. Done. Thanks to all people who have give me a hand. When use shutdown() in MBean, the JBoss can't really shutdown. When use exit(int) in MBean, the JBoss will shutdown after deploying all deployment,. When use halt(int) in MBean, the JBoss immediately shutdown. Thus, I use halt(int) to shutdown JBoss. PS, all the three mehod list above is member method of org.jboss.system.server.ServerImplMBean, whose instance make out a JBoss. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3896323#3896323 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3896323 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - Re: Why System.exit in MBean can not halt the JVM??
I don't think so. Well, in the javadoc of System.exit(int ), it says that: the method will halt the entire JVM. When the entire JVM is halted, then all threads running in it will be certainly terminated. So your guess is not possible. Any other advice please. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3896211#3896211 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3896211 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - Re: Why System.exit in MBean can not halt the JVM??
Here is my guess. JBoss is muti-threaded. The only thing that System.exti(-1) accomplished is that it killed the thread you were running on and set the program exit code. The other threads are still running. To successfully kill the whole application, you must terminate all of the threads. (Actually, the best way to get JBoss to terminate is to send it the terminate signal.) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3895605#3895605 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3895605 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user