I managed to use EJB3 interceptors rather quickly, but I battled a long time getting AOP interceptors working on the same application server configuration. I am running 4.0.3 with the EJB3-RC3 patch.
I red the section about using -javaagent:pluggable-instrumentor.jar etc and modifying the mbean at :
http://docs.jboss.com/aop/1.1/aspect-framework/reference/en/html/running.html
but it did not resolve my issue. The only way I could get my AOP to work was to add the
-Djboss.aop.class.path=....
to run.sh. I pointed it to the compiled classes.
Is there another way I can configure JBoss to read the AOP'ed classes from the EJB3 file rather then the specified aop path ?
Thanks
Alex
alex@ejb3workshop.com
Take a look at the "injboss" tutorial example that comes with the AOP distribution. It shows you a few different ways to package your app. You could for example deploy an -aop.xml alongside your ear/ejb3 file.