deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerhard Petracek <gpetra...@apache.org>
Subject Re: How to create Scheduler Jobs at runtime from a base CDI instance job
Date Wed, 18 Nov 2015 16:27:19 GMT
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 <pablo.pita@gmail.com>:

> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message