}
}
if (conn.getAutoCommit()==false)
conn.commit();
OutputHelper oh = (OutputHelper) outputMapping.select( (String) defaultModeNames.get( MODE_OUTPUT ) );
oh.commit( null, request );
outputMapping.release( oh );
} catch (Exception e) {
if ( conn != null ) {
try {
if (getLogger().isDebugEnabled())
getLogger().debug( "Rolling back transaction. Caused by " + e.getMessage() );
conn.rollback();
OutputHelper oh = (OutputHelper) outputMapping.select( (String) defaultModeNames.get( MODE_OUTPUT ) );
oh.rollback( null, request, e );
outputMapping.release( oh );
} catch (SQLException se) {
if (getLogger().isDebugEnabled())
getLogger().debug("There was an error rolling back the transaction", se);
}