Re: Restart Geronimo from within Servlet

2006-04-03 Thread Mario Rübsam
Hi, Matt Hogstrom wrote: Another option would be to use Java Service Wrapper to monitor Geronimo and restart it when it shutdown. thanks for the replies to my questions. I finally found the best way to restart Geronimo with all the ressources closed and the server restarts. I used the Java

Re: Restart Geronimo from within Servlet

2006-04-03 Thread Jacek Laskowski
On 4/3/06, Mario Rübsam [EMAIL PROTECTED] wrote: Hi, Matt Hogstrom wrote: Another option would be to use Java Service Wrapper to monitor Geronimo and restart it when it shutdown. thanks for the replies to my questions. I finally found the best way to restart Geronimo with all the

Restart Geronimo from within Servlet

2006-03-31 Thread Mario Rübsam
Hi, we developed a programm for automated data and program updates. This work fine with Geronimo but for the users convenience Geronimo should be restarted automatically after that (Geronimo runs as a windows service). I noticed the shutdown button in the console and I wonder if it will work to

Re: Restart Geronimo from within Servlet

2006-03-31 Thread Aaron Mulder
If the restart code in the console does what you want, then you can execute the same logic from a servlet. The best way would be to connect to the local server via JMX (which would require the administrator username and password). You could also connect directly to the Geronimo kernel in the

Re: Restart Geronimo from within Servlet

2006-03-31 Thread Matt Hogstrom
Another option would be to use Java Service Wrapper to monitor Geronimo and restart it when it shutdown. Mario Rübsam wrote: Hi, we developed a programm for automated data and program updates. This work fine with Geronimo but for the users convenience Geronimo should be restarted

Re: Restart Geronimo from within Servlet

2006-03-31 Thread Paul McMahan
The console currently shuts down the server by calling kernel.shutdown() followed by System.exit(). There is also some dormant code that reboots the server by calling Daemon.main(new String[0]) instead of System.exit(). However, that code is commented out with the following remark: // Removed