hi pablo, we keep org.apache.deltaspike.scheduler.spi.Scheduler as minimal as possible. with #unwrap it's possible to support special cases, however, please create a jira ticket for the suggested improvement.
thx & regards, gerhard 2015-11-18 15:30 GMT+01:00 Pablo Pita <[email protected]>: > Hello List, > > > I am trying to implement some functionality this time using the DeltaSpike > Scheduler. Normally, it is quite straightforward, but this time, I am > facing trouble. > > > I have to run some jobs periodically related to polling tables in a > database. To implement this, I use the Scheduler module. After reading its > documentation, I find easy to schedule jobs that are fully defined at > compile time. But for some cases I like to poll some other tables and make > the polling intervals specific to the table. Therefore, I like to get a job > instance with its dependencies injected via CDI, then prepare a Trigger or > something similar, prepare some parameters, and schedule this job. Do > similarly for the other tables by getting a new instance of the same class. > I think this is possible to achieve and I would like to request if this > case could be treated in the documentation as well. Also any feedback on > how to do this, it is welcome. > > > Thanks, > -- > Pablo Pita Leira >
