I have startup code in an MBean that attempts to connect to a MySQL database.  If that 
connection to the database fails I would like to terminate the JBoss server.  There is 
no point in running our app if the database is not available.

I have tried calling System.exit(0) from my MBean.  This causes the JBoss shutdown to 
start, but then the server hangs to the point where it will not respond to a CTRL-C.  
A Runtime.halt(0) does work, but I need a more gracefull shutdown.

I do not believe the typical remote shutdown will work for us since we are using a 
stripped down version of JBoss.

I am using JBoss version 3.2.3 on Windows XP.

Any ideas?

Thanks,

Jamie

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

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


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to