Dec 13th, 2011, 01:17 PM
Spring AOP, Web apps with a Services Jar
Is it possible to use AOP to create aspects for code that resides in a dependency of your web application
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
Found the answer
Needed to turn on weaveDependencies in my pom.xml