This sounds like it could be a simple java app?
Are you sure this needs to be a servlet? If so, I suppose the easiest is 
just to write a controller servlet for it that only executes the method 
when the time is right, and sleeps the rest of the time..
Someone else suggested some code for this.
Ken



Kelly Prudente Pereira wrote:
> Yes Ken, I mean I don't want to load it until a specific time.
> I need to load it to do a specific job at a certain time.
> Do you know how can I do this?
> 
> -----Mensagem original-----
> De: Ken Anderson [mailto:[EMAIL PROTECTED]] 
> Enviada em: quarta-feira, 10 de abril de 2002 19:19
> Para: Tomcat Users List
> Assunto: Re: How can I automatically start a servlet in a specific time?
> 
> You mean you don't want to load it until a specific time, or you don't 
> want it to respond to requests until a certain time?
> Ken
> 
> 
> Carlos Martins wrote:
> 
>>Kelly,
>>
>>Boa pergunta... n�o sei nenhuma maneira directa, mas podes sempre criar um
> 
> servlet tipo "scheduler" que arranca autom�ticamente com o tomcat e que a
> determinadas horas arranca outros servlets.
> 
>>Carlos
>>
>>-----Original Message-----
>>From: Kelly Prudente Pereira [mailto:[EMAIL PROTECTED]]
>>Sent: quarta-feira, 10 de Abril de 2002 23:04
>>To: '[EMAIL PROTECTED]'
>>Subject: How can I automatically start a servlet in a specific time?
>>
>>
>>Can anyone answer my question?
>>How can I automatically start a servlet in a specific time? For example:
> 
> at
> 
>>midnight. 
>>I don't want to start it when I start my webserver.
>> 
>>Thanks in advanced,
>> 
>>Kelly Prudente Pereira
>>Analista de Sistemas - NDS
>>[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  
>>F�ton� Inform�tica e Servi�os
>>Fone: (61) 328 5060 R.: 221
>> 
>>
>>--
>>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>>For additional commands: <mailto:[EMAIL PROTECTED]>
>>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>>
>>
>>
> 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> 
> 



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to