Announcement Announcement Module
Collapse
No announcement yet.
MethodSecurityInterceptor: BeanNameAutoProxyCreator vs. aop:advisor advice-ref Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?
Working...
X