I'm running JBoss 4.0.0 and JBoss AOP 1.0 FINAL. In my application I would like
to instrument my classes at compile time using AOPC.
It seems I have everything working. I've modified my Ant build process and I
can see the changes being made to my class files. It appears the correct
methods are being captures and the correct class files being modified.
However, when I deploy and run my application, my Interceptor code is not
called.
Most of the examples I've seen for installing AOP seem to be related to
loadtime instrumentation.
My assumption has been that if I am only interested in precompiled AOP, the
only runtime requirement are the JAR files included in the AOP distribution:
javassist.jar
trove.jar
concurrent.jar
jboss-aop.jar
(jboss-common.jar is already in JBoss 4.0.0)
In order to get my simple test to to work, I've tried packaging my Interceptor
class in a ".aop" module (META-INF/jboss-aop.xml), and modifying my
application.xml file to include this, adding jboss-aop.deployer.
But nothing I do causes my code to be executed.
I don't get any errors. If I remove, say javassist.jar, from my deploy I get an
error saying the methods that have been instrumented are not found. So, I know
AOPC is doing something to my classes.
Is there something I may be missing?
My jboss-aop.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<interceptor-ref name="optimisticlockretry"/>
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866235#3866235
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866235
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development