title: Spring aop multiple pointcuts & advice but only the last one is working
body: <p>I have created two Spring AOP pointcuts that are completely separate and will be woven in for different parts of the system. The pointcuts are used in two different around advices, these around-advices will point to the same Java method.</p>
  
  <p>How the xml file looks:</p>
  
  <pre><code>&lt;aop:config&gt;
      &lt;aop:pointcut expression="execution(......)" id="pointcutOne" /&gt;
      &lt;aop:pointcut expression="execution(.....)" id="pointcurTwo" /&gt;
  
      &lt;aop:aspect id="..." ref="springBean"&gt;
          &lt;aop:around pointcut-ref="pointcutOne" method="commonMethod" /&gt;
          &lt;aop:around pointcut-ref="pointcutTwo" method="commonMethod" /&gt;
      &lt;/aop:aspect&gt;
  &lt;/aop:config&gt;
  </code></pre>
  
  <p>The problem is that only the last pointcut works (if I change the order <code>pointcutOne</code> works because it is the last one). I have gotten it to work by creating one big pointcut, but I would like to have them separate. Any suggestions to why only one of the pointcuts works at a time? </p>