That should wok just fine....
my guess is your not using the seam IoC container to get the doStuff component.
I don't have control on how to get the doStuff component. Since it's a startup component, it's Seam itself that instantiates it.
I read somewhere that @Logger is a
specialcomponent hence it can't be obtained during startup. No idea what
How are you calling your startup method? maybe you should add @Create on it so it gets called by seam once your component is created and injected
I'm not calling it, Seam does. The @Startup annotation makes Seam, on startup, calling the startup(Component) method. I'll try your @Create suggestion though! Thanks for the reply
This should work:
private final LogProvider log = Logging.getLogProvider(DoStuff.class);
Brom bie wrote on Apr 13, 2008 02:01 AM:
I'm not calling it, Seam does. The @Startup annotation makes Seam, on startup, calling the startup(Component) method.
Rubbish, no it doesn't.