Hi,

I have implemented apache isis quartz in my application for scheduler. The scheduler works fine. But when i try to inject any service into the MyJob class(which implements Job), it throws NPE when using the service object.

For example, lets say i have a DemoService and it has a method foobar(). If i inject the service

@Inject
DemoService demoService;


and then try to use it in executed() as following

demoService.foobar()

It throws Null Pointer Exception.


What can i do to inject service in my Job class??


Thanks,
Siddhesh Phatak

Reply via email to