2 Replies Latest reply on Aug 5, 2007 5:19 AM by abdelrahman

    Problem in interceptors

    abdelrahman

      Hi all
      i am trying simple method-execution interceptor , my jboss-aop.xml file is

      <?xml version="1.0" encoding="UTF-8"?>



















      and the class is

      public class POJO
      {
      public void noop()
      {
      System.out.println("noop()");
      }

      public void test1(String param)
      {
      System.out.println("test1(String param): " + param);
      }

      public void test2(int param)
      {
      System.out.println("test2(int param): " + param);
      callBar();
      }

      public static void test2()
      {
      System.out.println("static method");
      }

      public void callBar()
      {
      new Bar().hello();
      }

      public class Bar
      {
      public void hello() { System.out.println("hello"); }
      }
      }

      the problem is that the method test1(String) doesnt intercepted , could anyone help me .
      thank u