-
1. Re: How to initialize event source
lightguard Aug 12, 2011 3:35 AM (in response to jee4hire)Why can't you inject in that situation, or is it something else?
The only other way is to get the BeanManager (Inject or subclass Solder's BeanManagerAware for an easier use, or look it up via JNDI) and call the fireEvent(Object payload, Annotation ... qualifiers) method.
-
2. Re: How to initialize event source
jee4hire Aug 15, 2011 11:31 AM (in response to jee4hire)Quartz persists objects that implement org.quartz.Job in the database.
When the scheduler determines that it is time to run the job, it retrieves the object from the database.
For some reason, all the CDI stuff fails to work in this context.
I am trying to figure out a way to trigger an event from inside a quartz job when it is run to update the UI.Thanks for the suggestions.
-
3. Re: How to initialize event source
ssachtleben.ssachtleben.gmail.com Aug 16, 2011 2:03 AM (in response to jee4hire)Do you use your own quartz implementation or Seam Cron?
-
4. Re: How to initialize event source
jee4hire Aug 16, 2011 10:48 AM (in response to jee4hire)I have a requirement to alter the scheduling of a job every time it is run. Seam Cron only supports scheduling a job with a constant periodic schedule, i.e., run this job every t seconds.
I need to run a job, dynamically determine the next time a job should run. -
5. Re: How to initialize event source
jee4hire Aug 16, 2011 10:49 AM (in response to jee4hire)Therefore, I am using the Quartz API to control everything.