title: Spring multiple @Transactional datasources
body: <pre class="lang-xml prettyprint-override"><code>&lt;bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"&gt;
      &lt;property name="entityManagerFactory" ref="data.emf" /&gt;
  &lt;/bean&gt;
  
  &lt;tx:annotation-driven transaction-manager="transactionManager" /&gt;
  
  
  &lt;bean id="transactionManager2" class="org.springframework.orm.jpa.JpaTransactionManager"&gt;
      &lt;property name="entityManagerFactory" ref="data.emf" /&gt;
  &lt;/bean&gt;
  
  &lt;tx:annotation-driven transaction-manager="transactionManager2" /&gt;
  </code></pre>
  
  <p><br>
  In my service layer, can I use <code>@Transactional(name="transactionManager2");</code>  to identify which transaction manager I use if I have multiple transaction managers? </p>