Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 40982 invoked from network); 3 Apr 2006 13:04:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Apr 2006 13:04:28 -0000 Received: (qmail 97327 invoked by uid 500); 3 Apr 2006 13:04:12 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 97256 invoked by uid 500); 3 Apr 2006 13:04:11 -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 97217 invoked by uid 99); 3 Apr 2006 13:04:11 -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 06:04:11 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of eljotpl@gmail.com designates 66.249.82.201 as permitted sender) Received: from [66.249.82.201] (HELO xproxy.gmail.com) (66.249.82.201) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Apr 2006 06:04:10 -0700 Received: by xproxy.gmail.com with SMTP id s9so750690wxc for ; Mon, 03 Apr 2006 06:03:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JIq8aIWCHRcwyBl3q4DCpWorLIqvgy3LaegM8GtBNg2TWaJfy8hWpgxg2PkMhuHOIQzHtg7vbGzRb+JmuRW44rTVdofx5NjZhBtNJubVVXi1N4dtdNi204iP5gMCHj3VMA1WmZUDNhG8mJ7THQ+QVsa8g7PfC/VDjDfosZ6tpoA= Received: by 10.70.69.6 with SMTP id r6mr2091755wxa; Mon, 03 Apr 2006 06:03:42 -0700 (PDT) Received: by 10.70.90.2 with HTTP; Mon, 3 Apr 2006 06:03:42 -0700 (PDT) Message-ID: <1b5bfeb50604030603k3cb9ef8at4d53cf219906fee4@mail.gmail.com> Date: Mon, 3 Apr 2006 15:03:42 +0200 From: "Jacek Laskowski" Reply-To: jacek@laskowski.net.pl Sender: eljotpl@gmail.com To: user@geronimo.apache.org Subject: Re: Restart Geronimo from within Servlet In-Reply-To: <44311A72.3070509@coderesearch.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <442D0E3F.1060103@coderesearch.com> <442D405F.9040604@hogstrom.org> <44311A72.3070509@coderesearch.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 4/3/06, Mario R=FCbsam 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 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=3DRestartGeronimo > wrapper.filter.action.1=3DRESTART > > all other settings like Hernan described here: > http://opensource2.atlassian.com/confluence/oss/display/GERONIMO/Configur= ing+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. Whooow! That's incredibly simple! I have never worked with JSW, but after having seen the example I added it to my toolbox. Thanks! > Maybe this short example help others to remote restart the > Geronimo service via a web interface. Good point. Would you like to go on with it, report a JIRA task/issue and attach a patch? I could commit the change and the solution of yours would be distributed as an integral part of Geronimo's official distributions. Thanks for sharing it! > Mario Jacek -- Jacek Laskowski http://www.laskowski.org.pl