-
Jul 6th, 2007, 07:14 AM
#1
MethodSecurityInterceptor: BeanNameAutoProxyCreator vs. aop:advisor advice-ref
HI,
I have a MethodSecurityInterceptor.
When I invoke it via a BeanNameAutoProxyCreator everything is fine.
When I invoke it via aop:advisor advice-ref="myInterceptor" pointcut="execution (* com.foo.bar.IFoo.*(..))" it is called but an org.acegisecurity.AuthenticationCredentialsNotFoun dException is thrown when I call InterceptorStatusToken token = super.beforeInvocation(mi).
What is the difference between both ways? Why doesn't it work with AOP?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules