Results 1 to 2 of 2

Thread: Request Interception using AOP

  1. #1
    Join Date
    Jul 2007
    Posts
    1

    Default 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. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    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 at 04:10 PM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •