• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Scheduling multiple tasks dynamically

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi !
I'm working on schedulers.
My problem is I have a list of dynamically generated reports.For every report that is generated , a corresponding scheduler must run periodically say , every day at certain time. The time at which the scheduler must run will be inputted by the user for each report.

I was able to run the scheduler perfectly if there was just one report. But whenever I have more than 1 report , I'm unable to handle.

Please suggest any idea or solution for this.

My scheduler will start when my application server is started.
I'm using a class that extends TimerTask class.

Thanks in advance,
Chandrika
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is not really a Struts question. You may need one report generator task that runs every so often (maybe every 5 minutes, or 30 minutes depending on the needed granularity). This generator would poll the database to see if there were any reports to generate and if so would generate them. Some app servers have built in scheduling features. Quartz is a popular open source job scheduler (www.opensymphony.com/quartz/).

- Brent
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic