Currently I\'m setting autocommit to false in spring through adding a property to a datasource bean id like below :
after 5 years still a valid question, i resolved my issue in this way :
Connection connection = dataSource.getConnection();
connection.setAutoCommit(false);
JdbcTemplate jdbcTemplate =
new JdbcTemplate(newSingleConnectionDataSource(connection, true));
// ignore case in mapping result
jdbcTemplate.setResultsMapCaseInsensitive(true);
// do your stuff
connection.commit();