[jboss-dev-forums] [Design of EJB 3.0] - WARN message in InterceptorsFactory
jaikiran
do-not-reply at jboss.com
Fri Jun 5 05:31:02 EDT 2009
I was looking at https://jira.jboss.org/jira/browse/EJBTHREE-1841 and other similar user complaints about the following WARN log message on first access to a bean:
09:02:34,655 WARN [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
|
Looking at the InterceptorsFactory class, which gets called as follows:
1) Client calls bean method for first time
2) The call is passed through AOP interceptor chain
3) AOP starts initializing any per instance advices (InterceptorsFactory is one such advice)
4) We issue a WARN and return a NoOpInterceptor
>From what i see in the InterceptorsFactory, its probably no longer required since the same functionality is now done through the InjectInterceptorsFactory and InterceptorRegistry.
Any reason why we should not remove this InterceptorsFactory from ejb3-interceptors-aop.xml AOP advices?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235572#4235572
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235572
More information about the jboss-dev-forums
mailing list