hai Chris,
         First of all let thank you for the solution u gave me. It worked only one 
time only but it's not working again .
         I will give u exact scenareo what i did
i wrote a servlet called WriteServlet and placed it in web-inf\classes dir
code for above file is as follows
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class WriteServlets extends HttpServlet {

public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
    Log.out("Hai Shashi1122121");
}
}

next i have placed my schedule file schedule.ini in c:\temp dir
ini file is like

0 1 * * * * http://localhost:8100/shash/servlet/WriteServlets

then here is my web.xml file

<web-app>
<servlet>
<servlet-name>schedule</servlet-name>
<init-param><param-name>schedfile</param-name><param-value>c:\temp\schedule.ini</param-value></init-param>

<init-param><param-name>logfile</param-name><param-value>d:\nrcout1.txt</param-value></init-param>

<servlet-class>allaire.jrun.scheduler.SchedulerService
</servlet-class>
</servlet>
</web-app>

plz chris go thro this and tell me where i have gone wrong
thanx in advance
shashi 

>  When it rains, it pours. You're talking about using
> a servlet for that sort of thing, right?
> 
>  Short answer: most operating systems have a scheduler 
> of
> some sort (eg, Unix cron) that can periodically call a
> program that open a connection to a servlet that does
> the work. And some application servers have non-standard
> (but very convenient) facilities for that sort of thing.
> 
>  Longer answer:
> 
>    http://www.distributopia.com/servlet_stuff/background-
> _threads.txt
> 
> 
> --
> Christopher St. John [EMAIL PROTECTED]
> DistribuTopia http://www.distributopia.com
> 
> ________________________________________________________-
> ___________________
> 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.ht-
> ml
> 
 


___________________________________________________________________________
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