-
Dec 13th, 2011, 01:17 PM
#1
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 !
-
Dec 14th, 2011, 03:52 AM
#2
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
-
Forum Rules