Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 35702 invoked from network); 14 Feb 2009 21:48:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Feb 2009 21:48:02 -0000 Received: (qmail 21108 invoked by uid 500); 14 Feb 2009 21:47:50 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 21078 invoked by uid 500); 14 Feb 2009 21:47:50 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 21067 invoked by uid 99); 14 Feb 2009 21:47:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Feb 2009 13:47:49 -0800 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Feb 2009 21:47:42 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LYSM4-0004cs-Om for users@tomcat.apache.org; Sat, 14 Feb 2009 13:47:20 -0800 Message-ID: <22017314.post@talk.nabble.com> Date: Sat, 14 Feb 2009 13:47:20 -0800 (PST) From: paybackorfail To: users@tomcat.apache.org Subject: Re: starting and stoppping tomcat In-Reply-To: <49973505.9080802@compulsivecreative.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: theitalianjob88@hotmail.com References: <22016214.post@talk.nabble.com> <49972625.6010206@apache.org> <22016694.post@talk.nabble.com> <49973505.9080802@compulsivecreative.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, thanks for replying, my application will take some data from a website and insert this data into a database and i schedule the application to do this every hour using contextlistener and timertask as a java servlet. At the moment it starts updating the database as soon as i upload the application to the server, I need a way to shutdown the server so it will stop updating the database Alan Chaney wrote: > > I think you need to rethink your use cases here... > > Exactly WHY do you need to start and stop tomcat from a button on a web > page? > Or do you really need to enable/disable some kind of function? > > Generally speaking servers don't expect to be started or stopped by > their clients - well, ok, sometimes you can stop a service by a client > but almost by definition you can't start a service from a client... > > Typically tomcat provides a way of processing requests received from > remote web clients and arranges for the requests to be processed by a > web application. Your application may have state which can be controlled > by the request. This shouldn't normally affect tomcat's normal operation. > > HTH > > Alan Chaney > > > paybackorfail wrote: >> That's a good point, what if it was just an html page? >> >> >> Mark Thomas-18 wrote: >> >>> paybackorfail wrote: >>> >>>> Hi, I have written a web application in netbeans using java and jsp, >>>> and >>>> i am >>>> hosting it on a server using tomcat, i need help on finding a way to >>>> start >>>> and stop the server by the user clicking a button on a jsp page, do i >>>> have >>>> to use the org.apache.catalina.ant.StartTask of the tomcat api? can >>>> anyone >>>> help? >>>> >>> If Tomcat is stopped, how is it going to handle a user clicking on a >>> button on a JSP page to start it? >>> >>> Mark >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>> For additional commands, e-mail: users-help@tomcat.apache.org >>> >>> >>> >>> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/starting-and-stoppping-tomcat-tp22016214p22017314.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org