Announcement Announcement Module
Collapse
No announcement yet.
Spring AOP, Web apps with a Services Jar Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Found the answer

    Needed to turn on weaveDependencies in my pom.xml

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

    Comment

    Working...
    X