title: MySQL and Infinispan - JTA implementation
body: <p>We have an web application under Tomcat, integrated with Hibernate 4X, Spring 4X and HibernateTransactionManager as our transaction manager (currently one MySQL resource).</p>
  
  <p>As part of our configuration distribution, we should integrate with <strong>Infinispan</strong> as our cache manager to store configuration <strong>with other format than in the MySQL</strong>. Meaning, <strong>not</strong> as Hibernate second level cache integration!</p>
  
  <p>I managed to integrate Infinispan with Spring but now I'm facing a big problem due to the fact the MySql transaction and Infinispan <strong>must be on the same @Transactional</strong>.</p>
  
  <p>I read about Spring JTA and how to integrate with Atomikos (e.g.) as our Global Transaction manager but I'm not sure if we can combine the whole entities to work together and how :(</p>
  
  <p>I need to know if there's an option to work with Atomikos Spring JTA so the Infinispan will recognize this JTA implementation and will handle the <strong>MySql and Infinispan as one global transaction! (2PC)</strong></p>
  
  <p>Thanks!</p>