java.sql.SQLException: IJ031019: You cannot commit during a managed transaction
Summary A transactional Spring service using JTA (JtaTransactionManager) attempted to commit inside an already-managed global transaction, triggered by an AOP advice that invoked another @Transactional service. The application server correctly blocked this, raising: java.sql.SQLException: IJ031019: You cannot commit during a managed transaction This postmortem explains why this happens, why it is common in legacy Spring … Read more