Transactions, Spring.
entityManager = new LocalContainerEntityManagerFactoryBean(); entityManager.setDataSource(dataSource()); Properties properties = new Properties(); properties.setProperty( "javax.persistence.transactionType", "jta"); entityManager.setJpaProperties(properties); return entityManager; } As before, the