-
1. Re: JBossCacheAop in tomcat
ben.wang Aug 16, 2005 12:40 AM (in response to igraf)Yes, you can. Just check out the aopc target under build.xml that comes with the distro.
-Ben -
2. Re: JBossCacheAop in tomcat
igraf Aug 16, 2005 5:50 PM (in response to igraf)Thanks very much for replying. I tried to aspectize a class (one class in an existing application and it has a bunch of classes it depends on) using the aopc target example in the build.xml, but I couldn't get it to work. It would inevitably fail at some point saying something like:
Failed to aspectize class com... Could not find class it references com.. It may not be in your classpath and you may not be getting field and constructor weaving for this class.
Could you tell me how I need to set the different classpath properties inside the aopc target block?
i.e. compilerclasspathref, src path, aopclasspath, and classpath elements?
(I've tried setting all of them to include the all the classes but I always get that error)
Thanks!
Isaac -
3. Re: JBossCacheAop in tomcat
ben.wang Aug 19, 2005 1:58 AM (in response to igraf)The best source for aopc is the JBossAop documentation. See this:
http://docs.jboss.com/aop/1.3/aspect-framework/reference/en/html/compiling.html
-Ben