• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Running a program daily

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

Bye
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
author
Posts: 288
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can think about Quartz scheduler
 
reply
    Bookmark Topic Watch Topic
  • New Topic