I had to do a similar kind of operation which involved running a JSP or servlet
at midnight everyday , i could'nt figure out a simpler way to do , so I ended up
converting the JSP to a stand alone JAVA application , since the process did not
involve human intervention it was ok to convert all the functionality into a
java app , without losing anything.
I then configured the NT scheduler to run the java app at a specified time
with the needed arguments. The java app produced a log file that can be stored
at a specific location so that its available on the net , doing so enables any
other person or dependent application to share the output.
Santosh
Richard Yee <[EMAIL PROTECTED]> on 08/02/2000 09:53:52 AM
Please respond to A mailing list about Java Server Pages specification and
reference <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Santosh Daryani/IT/Aon Consulting)
Subject: Re: How can I schedule a Job in JSP or servlet...
Krishnan,
Why don't you just convert the servlet into a Java application and set up
a cron job (Unix) to run it at the appropriate time?
-Richard
-----Original Message-----
From: Krishnan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 02, 2000 5:31 AM
To: [EMAIL PROTECTED]
Subject: How can I schedule a Job in JSP or servlet...
Hi pals,
We have to run a servlet or JSP automatically on saturday night at 12. We
are planning to write a servlet and in the init method of that servlet,
planning to invoke a thread which checks for the specified time and if
satisfies, do the necessary operations. We will load that servlet at startup
of the server. I want to know, is there is any other possible way of
achieving the same.
Your replies are highly appreciated.
rgds
krishnan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets