How to configure transaction management for working with 2 different db in Spring?
The javadoc for JpaTransactionManager has some advice on this: This transaction manager is appropriate for applications that use a single JPA EntityManagerFactory for transactional data access. JTA (usually through JtaTransactionManager) is necessary for accessing multiple transactional resources within the same transaction. Note that you need to configure your JPA provider accordingly in order to make … Read more