Depending on what you want to do, you could put your code into an
action, fix it with a URL like
http://localhost/thingy.do
and then run a job that calls the page. If you're on UNIX get the Perl
module LWP, which installs command line scripts, one called GET
which will call a URL for you, so then your script line in cron would be
GET http://localhost/thingy.do >> /tmp/thingy.log
If you're on NT, although it should work I'm not sure. There is an
implementation of "at" for NT in the NT resource kit. Otherwise you
might have to look at other options.
Just be aware if you do't secure the page, then anyone will be able to
call it.
Mihir Parekh wrote:
>
> We need to implement a job scheduler (similar to unix cron job). Is
> there a open source schedule which can be used with struts? Any
> pointers on implementing servlet based scheduler?
>
> Thanks,
> Mihir