I don't believe eager loading loads a service without it's dependencies
injected. Try starting your background service in a @Startup annotation
method in your module's class. Starting your service just means calling one
of it's methods.

*---------------------*
*Muhammad Gelbana*
http://www.linkedin.com/in/mgelbana


On Fri, Nov 22, 2013 at 6:03 PM, John <j...@quivinco.com> wrote:

> I have a utility class that recieves emails with a background TimerTask
> that needs to invoke a method on one of my injected DAOs to store the
> messages in the db.
>
> How do I get this class to load when I start my app and make sure the
> injected services are set? With EagerLoad the class gets instantiated but
> of course the services are null.
>
> John

Reply via email to