Today''s Page Hits: 77
I am working in a development environment with hibernate/jpa, seam and jbpm this half year
Recently, my user got a "java.sql.SQLException: You cannot commit with autocommit set!" exception in this kind of environment and asked me to help him to figure out the problem and solution.
java.sql.SQLException: You cannot commit with autocommit set!
In my application, I didn't encounter this kind of issue, so I am wondering why he does?
After some testing, comparing and comparing , I got the answer , he commented a MUST hibernate configuration, and it is a MUST configuration when running in managed context.
<!-- JTA transaction properties (begin) ===
==== JTA transaction properties (end) -->
Just to remind myself, “If you got 'You cannot commit with autocommit set!' , go to check hibernate.cfg.xml .