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.
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.
Do you use your own quartz implementation or Seam Cron?
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.
Therefore, I am using the Quartz API to control everything.