0 Replies Latest reply on Jul 6, 2004 12:35 PM by eyp

    Another issue...

      Hi again,

      Although I have other issues with jboss-aop, I'm trying to achieve other tests.
      I've precompiled some classes and all is right, but when I execute them there is
      no effect with my interceptions. I got not result.

      This is my test:

      jboss-aop.xml:

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






      Interceptor implementation:

      public class MethodAuthorizationInterceptor implements Interceptor {
      private static final Logger LOG = Logger.getLogger("es.test.aop");

      public String getName() {
      return getClass().getName();
      }

      public Object invoke(Invocation invocation) throws Throwable {
      MethodInvocation mInvocation = (MethodInvocation) invocation;
      String method = mInvocation.getMethod().getName();
      LOG.info("Interceptado el metodo - " + method);
      return invocation.invokeNext();
      }
      }

      When a class of es.test.support.commands is executed, I've nothing at log.
      There's no error when I run aopc. Have I missed some system property?

      My environment is:

      Tomcat 5.0.24, J2SDK 1.4.2_04, JBossAOP-1.0beta3