title: How to configure transaction management for working with 2 different db in Spring?
body: <p>I have 2 databases (MySql and HSQLDB). I configured 2 data sources and 2 EntityManagerFactory beans. I can also configure 2 correspondent JpaTransactionManager beans. </p>
  
  <p>But I don't know how to specify which of them should be used to manage transactions for concrete service-class. I want to use <code>@Transactional</code> annotation for that purpose, but I actually can specify only one of txManagers: </p>
  
  <pre><code>&lt;tx:annotation-driven transaction-manager="manager"/&gt;
  </code></pre>
  
  <p>What is the way out from this situation?</p>