We have a requirement to produce daily reports that are always ran at the same time of the
day. These reports are run in a "batch" mode.
Within our Seam application, users can also schedule their own reports to run based on
their preference.
To meet the second requirement, we have configured our Seam 2.0.1CR1 application to use
Quartz, persisting cron expressions and report values in the database based on the
user's preferences. This is working fine.
Our challenge is in meeting the first requirement (batch/non-user specific reports).
We have followed the suggestions found in
http://in.relation.to/Bloggers/DoingSomethingAtStartupWithSeam to schedule a Quartz job at
startup. This works fine the first time that JBoss is restarted. However, each
additional time that JBoss is restarted a new job is added to the database.
Is there any easy way of addressing this requirement in Seam? I was thinking that the
"batch"/non-user specific reports could be schedule in memory in Quartz so that
the schedule is not maintained across restarts.
Another option would be for me to manually add the job to the database (via a SQL script).
However I don't know the format of some of the serialized blobs.
Any suggestions on how we could realize our requirements using Seam/Quartz?
Environment: JBoss 4.2, Seam 2.0.1CR1, Quartz 1.6, MySQL 5
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116202#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...