This content has been marked as final.
Show 1 reply
-
1. Re: injboss example in JBoss 4.0.3RC1
kabirkhan Jun 28, 2005 3:17 PM (in response to vestergaard)Update the jboss-aop-jdk50.deployer to use the AspectManagerServiceJDK5 since this is what recognises the -javaagent stuff.
The Include/Exclude attributes have been added to help speed up the weaving. Anything in "Exclude" that is not expilcitly allowed in "Include" is not weaved. So basically anything under org.jboss is disallowed. If you modify your "Include" to contain org.jboss.injbossaop you should be OK (THe list is comma separated)<mbean code="org.jboss.aop.deployment.AspectManagerServiceJDK5" name="jboss.aop:service=AspectManager"> <attribute name="EnableLoadtimeWeaving">false</attribute> <!-- only relevant when EnableLoadtimeWeaving is true. When transformer is on, every loaded class gets transformed. If AOP can't find the class, then it throws an exception. Sometimes, classes may not have all the classes they reference. So, the Suppressing is needed. (i.e. Jboss cache in the default configuration --> <attribute name="SuppressTransformationErrors">true</attribute> <attribute name="Prune">true</attribute> <attribute name="Include">org.jboss.test,org.jboss.injbossaop</attribute> <attribute name="Exclude">org.jboss.</attribute> <attribute name="Optimized">true</attribute> <attribute name="Verbose">false</attribute> </mbean>