2 Replies Latest reply on Jul 4, 2006 12:43 PM by Adrian Andrei

    How to intercept Entity Beans in EJB3.0 using the Embeddable

    Adrian Andrei Newbie

      I want to be able to intercept methods of the Entity Beans using the latest Embeddable container (alpha 8).

      If I create a -aop.xml file and try to deploy it as in
      Code:

      EJB3StandaloneBootstrap.deployXmlResource("jboss-aop.xml");
      



      I get an exception: Caused by:
      org.jboss.xb.binding.JBossXBRuntimeException: No cursor for aspect
      


      If I try to alter the ejb3-interceptors-aop.xml I cannot figure out the domain for it. I played around with the Base Stateful Bean just to see if anything works, but it is not something I want. How can I intercept the Entity Beans, if it is possible at all?

      Regards,
      AA

      PS Also posted on AOP forum, no answer so far