Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you schedule a task in Websphere??

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm interested in have a JSP page run the first of every month, is there anyway I can use websphere to do this?

 
I am currently exploring couple of ways to do this:

1. (It is working for me) is to use java.util.Timer and TimerTask (this API is available since JDK 1.3).
Set one servlet as init-on-startup in your web.xml file, and then have this servlet run your Timer with the tasks
you want. This timer can call anything, even your JSP.

2. Call URL from the UNIX script. Run this as a UNIX cron job. Similar can be done on Win 2K.

3. Use CustomService on WebSphere. This should also work, but I did not try.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top