protected void restoreAutoCommitState ( ) { try { if ( ! broker . isManaged ( ) ) { if ( jcd . getUseAutoCommit ( ) == JdbcConnectionDescriptor . AUTO_COMMIT_SET_TRUE_AND_TEMPORARY_FALSE && originalAutoCommitState == true && con != null && ! con . isClosed ( ) ) { platform . changeAutoCommitState ( jcd , con , true ) ; } } else { if ( log . isDebugEnabled ( ) ) log . debug ( "Found managed environment setting in PB, will skip Platform.changeAutoCommitState(...) call" ) ; } } catch ( SQLException e ) { // should never be reached throw new OJBRuntimeException ( "Restore of connection autocommit state failed" , e ) ; } }
Reset autoCommit state .