JBoss kills started process

View: New views
3 Messages — Rating Filter:   Alert me  

Parent Message unknown JBoss kills started process

by Krzysztof Tomaszewski-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
https://lists.jboss.org/mailman/listinfo/jboss-development

Re: JBoss kills started process

by Jaikiran Pai-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
> https://lists.jboss.org/mailman/listinfo/jboss-development
>  

_______________________________________________
jboss-development mailing list
jboss-development@...
https://lists.jboss.org/mailman/listinfo/jboss-development

Re: JBoss kills started process

by Krzysztof Tomaszewski-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...>:

> 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@...
>> https://lists.jboss.org/mailman/listinfo/jboss-development
>>
>
> _______________________________________________
> jboss-development mailing list
> jboss-development@...
> https://lists.jboss.org/mailman/listinfo/jboss-development
>
_______________________________________________
jboss-development mailing list
jboss-development@...
https://lists.jboss.org/mailman/listinfo/jboss-development