@Bean public JtaTransactionManager transactionManager() { return new JtaTransactionManagerFactoryBean().getObject(); }
@Bean public PlatformTransactionManager transactionManager() { JtaTransactionManagerFactoryBean jtaTransactionManagerFactoryBean = new JtaTransactionManagerFactoryBean(); return jtaTransactionManagerFactoryBean.getObject(); }