Results 1 to 2 of 2

Thread: Spring AOP, Web apps with a Services Jar

  1. #1
    Join Date
    Nov 2010
    Posts
    16

    Default Spring AOP, Web apps with a Services Jar

    Hi

    Is it possible to use AOP to create aspects for code that resides in a dependency of your web application

    e.g.

    I have a webapp which contains controllers/jsp/and so on, and it has a dependancy of a a services jar, The web app controllers make use of the services within the jar and I would like to create some aspects for code within the jar.

    I've managed to crate some aspects for code within the webapp itself, but when ever I try to define pointcuts for code within the jar I get errors within STS which say that the expression cant be matched. Copying the same section of the Aspect to a new aspect within the jar code itself works?

    Hope that makes sense !

  2. #2
    Join Date
    Nov 2010
    Posts
    16

    Default

    Found the answer

    Needed to turn on weaveDependencies in my pom.xml

    http://mojo.codehaus.org/aspectj-mav...weaveJars.html

Posting Permissions

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