1 Reply Latest reply on Oct 23, 2005 7:50 AM by Kabir Khan

    Using EJB3 and AOP together without setting -Djboss.aop.clas

    Alexander Hartner Expert

      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