Problem solved. This is not JBoss related issue, but Linux related one.
When one stops program under linux by Ctr+C, the operating system
seems to send this signal to all child processes.
I was stopping JBoss by Ctr+C ...
2009/11/5 Jaikiran Pai <jpai(a)redhat.com>:
The best place to discuss questions like this, is the user forum
. Please open a new topic here
. We can discuss this
in your new thread.
Krzysztof Tomaszewski wrote:
> During shutdown JBoss 4.2.1 stops (kills?) processes started by
> I've created a MBean to control other program needed to work while my
> aplication under JBoss is running. This process is started by
> Runtime.getRuntime().exec(...) in MBean.start() method. In
> MBean.stop() I'd like to send some message to this process - but it is
> already dead.
> Q1: why JBoss stops process started by Runtime.getRuntime().exec(...).
> This not conforms to Java specification. Normal Java program doesn't
> stop process started by Runtime.getRuntime().exec(...).
> Q2: how I can change this behaviour of JBoss (I found nothing in documentation)?
> Kind regards,
> Krzysztof Tomaszewski
> jboss-development mailing list
jboss-development mailing list