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

appendix do-not-reply at jboss.com
Thu Aug 10 10:59:42 EDT 2006


Hi,

We've just started to work with Seam by extending the examples provided in the distribution. 
We understood that Seam is providing a logger build on top apache.commons.logging. 
As described in the user documentation it can be used by putting @Logger private Log log; into the bean code.
We've been trying this with a regular Java bean but the instance variable remains NULL all the time.
Our question is, when is it possible to use this logger? Can this one only be used with (stateful/stateless) session beans or only with entity beans? We've even tried to add the Seam interceptor (@Interceptors(SeamInterceptor.class)) to our class, but the logger is still uninitialized.

Could anyone explain the issue?

Thanks in advance,

    Kurt

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

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



More information about the jboss-user mailing list