Announcement Announcement Module
No announcement yet.
Request Interception using AOP Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Request Interception using AOP

    I'm trying to implement request interception using AOP (annotations flavored). I have declared a aspect with the following pointcut:

    @Around("execution(* org.springframework.web.servlet.mvc.Controller+.ha ndleRequest(..))")
    public Object checkHolding(ProceedingJoinPoint pjp) throws Throwable
    return pjp.proceed();

    We have several different flavors of controller abstractions in our application. Eventually everything extends Spring's Abstract controller. For some reason consistently only certain controllers are not getting proxied by Spring AOP on handleRequest call. Can someone please help me?

  • #2
    You might want to have a search on the forum, there are lots of posts regarding problems with proxying controllers. As there are internal method calls most of the rules people try and use don't work.
    Last edited by karldmoore; Aug 27th, 2007, 04:10 PM.