title: Spring AOP not working for method call inside another method
body: <p>There are two methods defined in <strong>ABC.java</strong></p>
  
  <pre><code>public void method1(){
     .........
     method2();
    ...........
  }
  
  
  public void method2(){
    ...............
    ...............  
  }
  </code></pre>
  
  <p>I want to have AOP on call of <strong>method2</strong>.So,
  I created one class,<strong>AOPLogger.java</strong>,having aspect functionality provided in a method <strong>checkAccess</strong><br>
  In configuration file, I did something like below</p>
  
  <pre><code>&lt;bean id="advice" class="p.AOPLogger" /&gt;
  &lt;aop:config&gt;
    &lt;aop:pointcut id="abc" expression="execution(*p.ABC.method2(..))" /&gt;
    &lt;aop:aspect id="service" ref="advice"&gt;
      &lt;aop:before pointcut-ref="abc" method="checkAccess" /&gt;          
    &lt;/aop:aspect&gt;
  &lt;/aop:config&gt;
  </code></pre>
  
  <p>But when my method2 is called, AOP functionality is not getting invoked i.e. <strong>checkAccess</strong> method is not getting invoked of AOPLogger class.</p>
  
  <p>Any thing i am missing?</p>