tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paybackorfail <theitalianjo...@hotmail.com>
Subject Re: starting and stoppping tomcat
Date Sat, 14 Feb 2009 21:47:20 GMT

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


Mime
View raw message