[jboss-user] [JBossCache] - Problem in interceptors

AbdElrahman do-not-reply at jboss.com
Sun Aug 5 05:14:24 EDT 2007


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


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070947#4070947

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070947



More information about the jboss-user mailing list