Hi,

I have a web application that uses many jar files, using many different 
packages.  E.g.
  com.mycompany.module1.package1
  com.mycompany.module1.package2
  com.mycompany.module2.package1
and inside each package there are many classes.  What I would like to do is to 
aopcompile only classes in com.mycompany.module1.*.  So, in my jboss-aop.xml, I 
define
   <bind pointcut="execution(* com.mycompany.module1.*->*(..))">
  |        <interceptor class="com.mycompany.perf.SimpleInterceptor"/>
  |    </bind>
Some class in module1 calls a class in module2, which I do not want to 
aopcompile.  In a temp directory, I exploded the module1 classes, and tried to 
run the aopcompiler.  The aopcompiler managed to transform some classes, but 
throws javassist.NotFoundException while trying to transform a method in a 
class that calls a Class that does not exist just yet. 

Questions:
1. Is it by design that AOPcompiler will try to aopcompile classes not 
specified in jboss-aop.xml but called by classes defined in the xml file?

2. Are there options for aopcompile like those for load time weaving?
eg.    like 
         <attribute name="SuppressTransformationErrors">true</attribute>
  |          <attribute name="Prune">true</attribute>
  |          <attribute name="Include">org.jboss.test</attribute>
  |          <attribute name="Exclude">org.jboss.</attribute>
  |          <attribute name="Optimized">true</attribute>
  |          <attribute name="Verbose">false</attribute>
3. If not, how can I continue with AOP compile?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924088#3924088

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924088


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to