title: Spring AOP and transaction add custom interceptors
body: <p>My spring definition regarding trasnsaction are defined as following:</p>
  
  <pre><code>&lt;bean id="txInterceptor"
      class="org.springframework.transaction.interceptor.TransactionInterceptor"&gt;
      &lt;property name="transactionManager" ref="transactionManager"/&gt;
  &lt;/bean&gt;
  
  &lt;aop:config&gt;
      &lt;aop:pointcut id="defaultServiceOperation"
            expression="execution(* x.y.service.*Service.*(..))"/&gt;
      &lt;aop:advisor pointcut-ref="defaultServiceOperation"
            advice-ref="defaultTxAdvice"/&gt;
  &lt;/aop:config&gt;
  
  &lt;tx:advice id="defaultTxAdvice"&gt;
      &lt;tx:attributes&gt;                        
           &lt;tx:method name="*"/&gt;
      &lt;/tx:attributes&gt;
  &lt;/tx:advice&gt;
  </code></pre>
  
  <p>Now, I'd like to add some additional interceptors that my App contains, that will run before every time that transaction interceptor is invoked. i.e. I'd like to add to the pointcut 'defaultServiceOperation' other advise, or add to the 'defaultTxAdvice' pre interceptors. Something like:</p>
  
  <pre><code>&lt;property name="preInterceptors"&gt;
        &lt;list&gt;
             &lt;ref bean="optimisticLockingInterceptor"/&gt;
             &lt;ref bean="deadLockingInterceptor"/&gt;            
        &lt;/list&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>Is it possible and how can I do it?</p>