Shutdown embedded OpenEJB gracefully

2011-09-20 Thread Markus Lutum
Hi out there. I am using OpenEJB 3.1.4 the embedded way and need a way to stop the server gracefully. I start it via: Properties properties = new Properties(); properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, org.apache.openejb.client.LocalInitialContextFactory);

Re: Shutdown embedded OpenEJB gracefully

2011-09-20 Thread Jacek Laskowski
On Tue, Sep 20, 2011 at 9:11 AM, Markus Lutum markus.lu...@nedap.com 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,

Re: Shutdown embedded OpenEJB gracefully

2011-09-20 Thread Jacek Laskowski
On Tue, Sep 20, 2011 at 9:34 AM, Markus Lutum markus.lu...@nedap.com wrote: 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... Good catch! I didn't know that. How

Re: Shutdown embedded OpenEJB gracefully

2011-09-20 Thread Romain Manni-Bucau
OpenEJB is famous http://blog.jonasbandi.net/2009/06/restarting-embedded-openejb-container.html ;) - Romain 2011/9/20 Jacek Laskowski ja...@japila.pl On Tue, Sep 20, 2011 at 9:34 AM, Markus Lutum markus.lu...@nedap.com wrote: But at least I found out that if I set the property