static void clean() throws Exception {
final UserTransaction tx = InitialContext.doLookup(\"UserTransaction\");
tx.begin();
try {
final DataSource ds = In
If auto-commit mode is disabled and you close the connection
without explicitly committing or rolling back your last changes,
then an implicit COMMIT operation is executed.
Please check below link for details:
http://in.relation.to/2005/10/20/pop-quiz-does-connectionclose-result-in-commit-or-rollback/