Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 35466 invoked from network); 3 Apr 2006 12:54:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Apr 2006 12:54:01 -0000 Received: (qmail 76642 invoked by uid 500); 3 Apr 2006 12:53:58 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 76613 invoked by uid 500); 3 Apr 2006 12:53:58 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 76602 invoked by uid 99); 3 Apr 2006 12:53:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Apr 2006 05:53:57 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [217.160.108.180] (HELO yukon.coderesearch.com) (217.160.108.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Apr 2006 05:53:57 -0700 Received: (qmail 3811 invoked from network); 3 Apr 2006 14:53:23 +0100 Received: from p54b8ba44.dip0.t-ipconnect.de (HELO ?192.168.8.11?) (84.184.186.68) by coderesearch.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 3 Apr 2006 14:53:23 +0100 Message-ID: <44311A72.3070509@coderesearch.com> Date: Mon, 03 Apr 2006 14:52:02 +0200 From: =?ISO-8859-1?Q?Mario_R=FCbsam?= User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: user@geronimo.apache.org Subject: Re: Restart Geronimo from within Servlet References: <442D0E3F.1060103@coderesearch.com> <442D405F.9040604@hogstrom.org> In-Reply-To: <442D405F.9040604@hogstrom.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 Service Wrapper as Matt suggested and added some filter settings to the wrapper.conf . # Filter settings wrapper.filter.trigger.1=RestartGeronimo wrapper.filter.action.1=RESTART all other settings like Hernan described here: http://opensource2.atlassian.com/confluence/oss/display/GERONIMO/Configuring+Geronimo+as+a+Windows+Service Now the only thing I did in the servlet is a simple: System.err.println("RestartGeronimo"); This triggers the log watch function of the JSW and the wrapper executes the RESTART action. Maybe this short example help others to remote restart the Geronimo service via a web interface. Thanks, Mario