Hello,
I'm not sure if my question belongs to this forum, or to Web forum, but anyway...
In an application, deployed to Tomcat 5.5, I have some classes annotated with @Configurable and <aop:spring-configured/> tag in the context.
There is no problem to activate load-time weaving in a Tomcat globally,
by suppliying -javaagent:aspectjweaver.jar to JVM that Tomcat is running on.
But is it possible to do it more specifically, to my Web-application only?
BTW, by using TomcatInstrumentableClassLoader (from org.springframework.instrument.classloading.tomcat ). I have not found a way to configure it properly![]()


Reply With Quote
) AspectJ anyway take a look on each loaded class (as you can see from log) just to say that it want to skip it. And my aop.xml affect only my application, so nobody can warranty how AspectJ will treat another application on the same Tomcat (as I have no idea about their configurations). My goal is to restrict usage of instrumented classloader to my application only.
