[TODO - DEVELOPMENT] - problem with JBoss Seam logger
by aleroch
HI All,
I'm newbie with JBoss Seam and I have problem with logger in my own interceptor class. I use this POJO class for the @AroundInvoke purpose. I declared "@Logger private Log log" field for logger logic but in my interceptor method I always receive null for log instance:(
Why I receive null ?What can be a reason of this wrong behavior ?
Thanks,
Alex
import javax.interceptor.AroundInvoke;
| import javax.interceptor.InvocationContext;
|
| import org.jboss.seam.annotations.Logger;
…
[View More] | import org.jboss.seam.annotations.Name;
| import org.jboss.seam.log.Log;
|
| @Name("loggedInInterceptor")
| public class LoggedInInterceptor {
|
| @Logger
| private Log log;
|
| @AroundInvoke
| public Object checkLoggedIn(InvocationContext invocation) throws Exception {
| // log is null here :(
| return invocation.proceed();
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133459#4133459
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133459
[View Less]
17 years