[jboss-user] [JBoss Seam] - using static modifier with Seam logger
do-not-reply at jboss.com
Thu Dec 6 11:04:13 EST 2007
On pg. 254 of 2.0.0.GA ref pdf, it states the following regarding @Logger:
"Specifies that a component field is to be injected with an instance of org.jboss.seam.log.Log"
I noticed that in my SFSB, I may use the following code without error:
| private Log log;
But if I use the same code in a Seam POJO used as an interceptor class I will get a NullPointerException (e.g. when log.info() is invoked).
If I use the following code in a Seam POJO used as an interceptor class, there is no exception:
| private static Log log;
Is this the correct behavior and what accounts for the difference?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110903#4110903
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110903
More information about the jboss-user