[jboss-user] [JBoss Seam] - Re: When can @Logger be used?

baz do-not-reply at jboss.com
Thu Aug 10 11:23:34 EDT 2006


Hello,
i am using this facility successfully with javabeans.
Do you try to use a log statement in a constructor?
This will not function. The bean is first constructed and then injection take place. So you can not use the logger in a constructor.
If you need it, you have 2 possibilities:
1. use the old method
2. use the logger in a method annotated with @Create
Ciao,
Carsten

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964406#3964406

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964406



More information about the jboss-user mailing list