3 Replies Latest reply on Jan 23, 2006 8:15 PM by Andreas Schaefer

    AOP Inside JBoss 4.0.3 with EJB3 does not work

    Andreas Schaefer Apprentice

      I created an .AOP file, put the jboss-aop.xml file inside the META-INF directory and deployed it. I also changed the jboss-service.xml file inside the AOP deployer directory to enable loadtime weaving and also set verbose to true.
      Unfortunately none of my bean methods are instrumented or at least the Interceptor method is not called.

      Strangly enough I see the EJB3 being instrumented by in this list my binding file (jboss-aop.xml) file is not listed:

      2006-01-13 14:36:07,468 INFO [STDOUT] method matched binding execution(* *->*(..)) public final void java.lang.Object.wait() throws java.lang.InterruptedException
      2006-01-13 14:36:07,468 INFO [STDOUT] [debug] added advisor: jboss.j2ee:service=EJB3,name=com.madplanet.ejb3.helloWorld.HelloWorldEJB3 from binding: file:/C:/java/jboss.4.0.3.sp1.ejb3.rc3/server/gateway/tmp/deploy/tmp16838ejb3-interceptors-aop.xml0
      2006-01-13 14:36:07,468 INFO [STDOUT] iterate binding file:/C:/java/jboss.4.0.3.sp1.ejb3.rc3/server/gateway/tmp/deploy/tmp16838ejb3-interceptors-aop.xml2
      2006-01-13 14:36:07,468 INFO [STDOUT] iterate binding file:/C:/java/jboss.4.0.3.sp1.ejb3.rc3/server/gateway/tmp/deploy/tmp16838ejb3-interceptors-aop.xml4

      Only the ejb3-interceptors-aop.xml file is mentioned.
      In addition I tried to deploy the jboss-aop.xml by itself but no luck.

      Any ideas?

      Thanx - Andy