Interesting.  I added a "System.exit(0)" which I can activate remotely
via a socket.

That is, I wrote a quick and dirty "JBossLauncher" class which calls
org.jboss.Main.main(...).  My launcher then listens on an unused port.
When anyone connects to that port, I close my socket and execute
"System.exit(0)".  JBoss's shutdown hooks seem to work just fine -- the
services shut down gracefully, and the process ends - apparently
cleanly.

To shut JBoss down, I just open a connection to that port.  When I use
it, the system shuts down reliably.  No need to manually kill processes,
and no core dump.  Ok, I only tested it about 10 times, but it worked
every time.

This suggests to me that there should be a really easy fix for this
which could be put directly into the code.

- Keith

-----Original Message-----
From: marc fleury <[EMAIL PROTECTED]>
To: jBoss <[EMAIL PROTECTED]>
Date: Friday, November 10, 2000 4:48 PM
Subject: RE: [jBoss-User] problem with IBM JDK 1.3


>yes JDK bug... we don't know what causes it exactly, it is annoying but
not
>a show stopper.
>
>Also since it core-dumps on Linux we recommend
>
>ln -s core /dev/null
>
>:)))) it will save you a lot of time :)))
>
>
>marc
>
>
>|-----Original Message-----
>|From: [EMAIL PROTECTED]
>|[mailto:[EMAIL PROTECTED]]On Behalf Of Keith L. Musser
>|Sent: Friday, November 10, 2000 1:33 PM
>|To: jBOSS-User
>|Subject: [jBoss-User] problem with IBM JDK 1.3
>|
>|
>|Hi JBoss,
>|
>|I just installed IBM's JDK 1.3.0 and have a problem with JBoss using
it.
>|
>|JBoss runs just fine under it, but I cannot stop it.  When I type ^C,
>|the JBoss goes through the shutdown sequence [i.e. all the services /
>|MBeans are stopped ], but the processes do not end.
>|
>|(Same behavior if I use java -jar stop.jar).
>|
>|I have not found a way to stop the processes other than to use
"kill -9"
>|on each JBoss thread!
>|
>|Any ideas?
>|
>|- Keith
>|
>|Keith L. Musser
>|Integrated Dynamics, Inc.
>|812-371-7777
>|email:  [EMAIL PROTECTED]
>|
>|
>|
>|
>|--
>|--------------------------------------------------------------
>|To subscribe:        [EMAIL PROTECTED]
>|To unsubscribe:      [EMAIL PROTECTED]
>|Problems?:           [EMAIL PROTECTED]
>|
>|
>
>
>
>--
>--------------------------------------------------------------
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>Problems?:           [EMAIL PROTECTED]
>
>



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to