title: AspectJ with JSF1.2
body: <p>I am using <strong>JSF1.2</strong> framework. <strong>I didnt Integrate my application with Spring</strong>.I want to perform profiling on method invocations. my application file is <strong>EAR (EJB + WAR )</strong>. i can get the session beans methods execution time with the help of interceptor but for WAR module i was suggested to use AspectJ in this blog. so i have written some code. is there any thing i need to do like <strong>configuration details</strong>. I added the required jar file of <strong>AspectJ</strong> is <strong>JSF support AspectJ</strong> with any configuration? my code is:</p>
  
  <pre><code>import org.aopalliance.intercept.MethodInterceptor;
  import org.aopalliance.intercept.MethodInvocation;
  import org.aspectj.lang.annotation.Around;
  import org.aspectj.lang.annotation.Aspect;
  @Aspect
  public class AopInterceptor implements MethodInterceptor{
  
  public AopInterceptor() {
  }
  
  @Pointcut("execution (* *.*(..))")
  public void profile(){}
  
  @Around("profile()")
  public Object invoke(MethodInvocation mi) throws Throwable {
      System.out.println("test start");
      Object obj=mi.proceed();
      System.out.println("test end");
      return obj;
   }
  }
  </code></pre>