It's not a secret anymore!
The moose likes General Computing and the fly likes Running a program daily Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Running a program daily" Watch "Running a program daily" New topic

Running a program daily

Sunesh Kumar
Ranch Hand

Joined: Oct 17, 2005
Posts: 89
hi Friends,

May be i posted the Quuery in a wrong place,if sorry for that.

I am developing a application in that i have to send mails to my clients daily or weekly or monthly.As per the requrement.

For this i have a run a program daily which checks for the date column if it matches i have send mails.
FOr this i have to run a program daily how can i do this...

Waiting for your valuble suggestions


Thanks & Regards<br />Sunesh Kumar Baachu
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

May be i posted the Quuery in a wrong place

The JSP forum sounds like the wrong place.

Under Windows : Task scheduler
Under Unix : cron

I don't know if the Task Scheduler is professional enough. Never used it.

[My Blog]
All roads lead to JavaRanch
ak pillai
Ranch Hand

Joined: Feb 11, 2006
Posts: 288
You have a few options:

in unix use: cron jobs
in windows: use a Scheduler

If you need a solution which will do both and want to use Java then

look at Timer and TimerTask API in Java.

java j2ee job interview questions with answers | Learn the core concepts and the key areas
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
You can think about Quartz scheduler

Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
I agree. Here's the link:
subject: Running a program daily
jQuery in Action, 3rd edition