+1. Having a cdi job with constructor injections would be nice
Le 7 juin 2014 03:52, "John D. Ament" <[email protected]> a écrit :

> Hi,
>
> I noticed that in our scheduler module, we let quartz instantiate the
> job, manually inject into it, and use that to do work.  If I have a
> job that is ApplicationScoped, this results in multiple instances
> getting created.
>
> I wonder, would it be better if we try getting a contextual instance
> via JobFactory and simply use that?  Then let the listener start any
> necessary contexts.
>
> John
>

Reply via email to