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 :
but it did not resolve my issue. The only way I could get my AOP to work was to add the
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 ?
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.