-
1. Re: org.jboss.Shutdown not doing complete shutdown
adrian.brock Mar 21, 2002 6:02 AM (in response to guy_rouillier)Which version of JBoss are you using?
It should be same. Your method does a
System.exit(0) which is the same as control-c
Both run the ShutdownHook.
Regards,
Adrian -
2. Re: org.jboss.Shutdown not doing complete shutdown
guy_rouillier Mar 21, 2002 9:50 PM (in response to guy_rouillier)This is on JBoss 2.4.3. I can send complete logs if desired.
-
3. Re: org.jboss.Shutdown not doing complete shutdown
adrian.brock Mar 22, 2002 4:41 AM (in response to guy_rouillier)Can you attach them to the forum?
Can you post the batch file as well?
Regards,
Adrian -
4. Re: org.jboss.Shutdown not doing complete shutdown
guy_rouillier Mar 22, 2002 10:03 PM (in response to guy_rouillier)Ok, file attached. See read.me.
-
5. Re: org.jboss.Shutdown not doing complete shutdown
adrian.brock Mar 23, 2002 6:29 AM (in response to guy_rouillier)Ok,
It doesn't work :-(
I tried your .bat file which just invokes the
shutdown MBean, no problem there.
The problem is in org.jboss.Shutdown.java
It has been fixed in jboss3.0
Instead of doing System.exit(0);
It now does (the new thread must be important)
[pre]
new Thread()
{
public void run()
{
log.info("Shutting down the JVM now!");
Runtime.getRuntime().exit(exitcode);
}
}.start();
[/pre]
Regards,
Adrian -
6. Re: org.jboss.Shutdown not doing complete shutdown
guy_rouillier Mar 25, 2002 10:23 AM (in response to guy_rouillier)Thanks for looking into this. Will this fix make it into 2.4.5?
-
7. Re: org.jboss.Shutdown not doing complete shutdown
adrian.brock Mar 25, 2002 11:24 AM (in response to guy_rouillier)It will if you raise it as a bug on sourceforge ;-)
Regards,
Adrian -
8. Re: org.jboss.Shutdown not doing complete shutdown
guy_rouillier Mar 29, 2002 1:31 AM (in response to guy_rouillier)Ok, bug 536633 created. Thanks, Adrian.
-
9. Re: org.jboss.Shutdown not doing complete shutdown
user57 Apr 2, 2002 2:10 AM (in response to guy_rouillier)Thw thread just allows the method to return. The impl which does not thread will shutdown, but will leave the client hanging and then finally disconnected.
--jason -
10. Re: org.jboss.Shutdown not doing complete shutdown
adrian.brock Apr 2, 2002 3:50 AM (in response to guy_rouillier)It also fixes this problem.
I've back ported this to 2.4.5 and shutdowns cleanly.
This might be another Windows/JVM funny. I didn't
try it on Linux.
Regards,
Adrian