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>:
Krzysztof,
The best place to discuss questions like this, is the user forum
http://www.jboss.org/index.html?module=bb. Please open a new topic here
http://www.jboss.org/index.html?module=bb&op=viewforum&f=61. We can discuss this
in your new thread.
regards,
-Jaikiran
Krzysztof Tomaszewski wrote:
> During shutdown JBoss 4.2.1 stops (kills?) processes started by
> Runtime.getRuntime().exec(...)
>
> 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(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/jboss-development
>
_______________________________________________
jboss-development mailing list
jboss-development(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-development