If you have the business logic in a servlet and want the servlet to 
execute at a given time you must make a client that accesses the servlet 
at a given time. That should be pretty straightforward. Either write a 
program that lies in the background and waits for the right time to 
execute or let cron do the job for you. Check the man pages for more 
information about cron.

But, why do you want you logic to be inside a servlet. What not have it 
inside a normal program? The code inside the servlets do-methods only 
get executed when the servlet container gets a request for that 
particular servlet.


Markus Kirsten


On m�ndag, februari 25, 2002, at 12:09 , vtr wrote:

> Can anybody enlighten me by telling how I could run a servlet at a 
> predefined time , say i want to run it daily at a particular time.� The 
> problem is that i have some lengthy calculation to be carried out in a 
> batch manner once in a
> day
> �
> �
> Regards
> �
> V.T.R.Ravi Kumar,
> �
> Engineer, CCX,
> BHEL, Hardwar, INDIA
> *****************************************
> Phone��������� : 0133-485405.
> Fax����������� : 0133-423948.
> Web����������� : http://vtr.2itb.com
> Alternate mails: [EMAIL PROTECTED]
> ���������������� [EMAIL PROTECTED]
> *****************************************

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to