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.
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?
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.
My problem is the Shutdown. JBoss says press Ctrl-C to shutdown, but this
You should use Shift-ESC 2 RET to tell a Java program to shut down.