2 Replies Latest reply on Dec 14, 2004 9:52 PM by Manabu Yoneyama

    I'd like to controll in order of interception

    Manabu Yoneyama Newbie

      Hi,
      I'm from Japanese.

      "annotation sample" in [jboss-aop_1.0.0-FINAL] sample directory

      Below is the code snippet of POJO.java.

      @trace @billable
      public void someMethod()
      {
      System.out.println("someMethod");
      }

      The output shows:

      [java] --- pojo.someMethod(); ---
      [java] billing...POJO_someMethod_2315001504750198986_OptimizedMethodInvocation@b89838
      [java] <<< Trace : executing method public void POJO.someMethod()
      [java] someMethod
      [java] >>> Leaving Trace

      I'd like to run @trace interceptor at first.
      I mean... the output is

      [java] --- pojo.someMethod(); ---
      [java] <<< Trace : executing method public void POJO.someMethod()
      [java] billing...POJO_someMethod_2315001504750198986_OptimizedMethodInvocation@b89838
      [java] someMethod
      [java] >>> Leaving Trace

      If possble, tell me how can I do that?
      I'm sory to bother that my poor English.