-
1. Re: Where/how is Ctrl-C shutdown handled?
sgturner May 10, 2002 3:04 PM (in response to martyu)Not sure why this is happening. Search the forum, here, because I've seen this problem listed before.
As to where some of the code is, in my copy of the source, there is a file org/jboss/Shutdown.java that shows how to shutdown from client side. There is also org/jboss/util/ShutdownMBean.java which looks to be the MBean that actually does the shutdown. -
2. Re: Where/how is Ctrl-C shutdown handled?
martyu May 11, 2002 2:30 PM (in response to martyu)Thank you for the reply. I did search before I posted, however I searched for AS/400. A search for "shutdown" yielded good info on how to shutdown from the browser or client (after they fix the code). That is very helpful.
I am still looking for the piece of code that actually picks up the Ctrl-C. Can you provide any insight into this? I would like to determine why the OS/400 Qshell environment does not respond like others, but I will need to isolate the Ctrl-C handling portion of JBoss first. I see a lot of code about a "shutdown hook". I see a shutdown method where it logs the "Shutting down" message and that must be related to the one I am looking for. Where does the message "Press [Ctrl]+[C] to abort" come from?
Thanks again. -
3. Re: Where/how is Ctrl-C shutdown handled?
adrian.brock May 12, 2002 8:21 AM (in response to martyu)Look at the javadocs for java.lang.Runtime.addShutdownHook
The signal is handled by the VM and passed to this hook.
I suspect your sysreq 2 is doing an abnormal end,
QShell is a bit pants.
Regards,
Adrian -
4. Re: Where/how is Ctrl-C shutdown handled?
stibotra Apr 6, 2006 7:56 AM (in response to martyu)"MartyU" wrote:
My problem is the Shutdown. JBoss says press Ctrl-C to shutdown, but this
-Marty
You should use Shift-ESC 2 RET to tell a Java program to shut down.