title: Spring AOP : Replace XML with annotations for transaction management?
body: <p>I would like to know if it's possible to replace this code :</p>
  
  <pre><code>&lt;tx:advice id="txAdvice" transaction-manager="transactionManager"&gt;
      &lt;tx:attributes&gt;
          &lt;tx:method name="get*" read-only="true" /&gt;  
          &lt;tx:method name="saveFile" isolation="SERIALIZABLE" propagation="REQUIRED" no-rollback-for="BusinessException" /&gt;
          &lt;tx:method name="*" /&gt;
      &lt;/tx:attributes&gt;
  &lt;/tx:advice&gt;
  
  &lt;!--Transaction aspect--&gt;
  &lt;aop:config&gt;
      &lt;aop:pointcut id="businessOperation"
          expression="execution(* com.application.app.business.*.*(..)) || execution(* com.application.app.logic..*.*(..))" /&gt;
      &lt;aop:advisor advice-ref="txAdvice" pointcut-ref="businessOperation" /&gt;
  &lt;/aop:config&gt;   
  </code></pre>
  
  <p>With full annotations and no XML at all? I mean defining an aspect doing the same thing on the transaction manager.</p>
  
  <p>I am able to define an aspect and pointcut but I don't see how I could get and act on the transaction manager.</p>
  
  <p>Thanks in advance for your answers.</p>