-
1. Re: Quartz Asynchronous events at startup
juntao Dec 6, 2007 12:27 AM (in response to hypher)Hypher,
This is cool. I will add this to the QuartzDispatcher code. If you created a JIRA issue already, can you send me the link?
As for your second point, I personally do not like the idea of keeping an event queue in QuartzDispatcher to just keep track of startup dependencies. Perhaps, we can just keep a boolean flag in QuartzDispatcher and other Seam components are responsible for checking that flag before scheduling tasks during startup?
cheers
Michael -
2. Re: Quartz Asynchronous events at startup
hypher Dec 6, 2007 12:16 PM (in response to hypher)The JIRA issue is http://jira.jboss.com/jira/browse/JBSEAM-2353?page=all.
A boolean flag would work as well. In my application, my custom dispatcher fires a "dispatcherInitialized" event when it did initialize, so components can observe that if they need to schedule an event near startup.
Thanks