2 Replies Latest reply on Jan 31, 2007 2:10 PM by C H

    EJB3 Embeddable and @AroundInvoke

    Tod Harter Newbie

      Just doesn't seem to be happening for me...

      public class UserManagerBean implements UserManager

      @PersistenceContext(unitName = "etsdata")
      private EntityManager manager;

      public Object InvokerTest(InvocationContext ctx) throws Exception {
      System.out.println("Got to AroundInvoke'd method...");
      return ctx.proceed();

      public String helloWorld() {
      return "hello world";

      helloWorld() is defined in my local interface, that works fine and dandy, but InvokerTest() definitely never fires. Haven't tested this deployed in JBoss (4.0.4GA) yet to see if the invokation happens, though the bean works fine there. We do a LOT of unit testing via embeddable/JUnit. I'd REALLY like to be able to test interception in unit test since we need to do a whole lot of audit logging etc.

      Basically my question is: SHOULD it work? Or is this just not a feature of embeddable that is working at this time?