tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Lutum <>
Subject RE: Shutdown embedded OpenEJB gracefully
Date Tue, 20 Sep 2011 07:34:38 GMT
Sending a signal to a process created jy runtime.exec is not an easy thing.
At least because I have to support unix AND windows environments.

But at least I found out that if I set the property
p.put("openejb.embedded.initialcontext.close", "destroy");
then the close will shutdown / undeploy the application and services...

-----Original Message-----
From: Jacek Laskowski []
Sent: Dienstag, 20. September 2011 09:24
Subject: Re: Shutdown embedded OpenEJB gracefully

On Tue, Sep 20, 2011 at 9:11 AM, Markus Lutum <> wrote:

> localContext.close() does not work

Send the "stop" command to the running instance. I don't have a code
to support the idea, but that's how command line works and that's how
I'd assume the code of yours could. But hey, you don't have to run the
command interface for openejb remoting to work (I believe). Sorry for
throwing it all up at you with no code support.


Jacek Laskowski
Java EE, functional languages and IBM WebSphere -
Warszawa JUG conference = Confitura (formerly Javarsovia) ::

View raw message