i'm working with spring batch with hibernate as data access layer. My job has tree steps. In the last step i need to do an explicit commit (flush) during my job inside an ItemWriter, because i have to read a database view that needs specific data persisted before.
I set a specific jtatransactionmanager, when the execution starts, in the first step, it caught an exception:
org.springframework.transaction.TransactionSystemException: Could not commit JDBC transaction; nested exception is java.sql.SQLException: You cannot commit during a managed transaction!
thank's in advance