I am using Spring JDBC and I would like to set autocommit to false only to one of the classes.
I have tried the following but the autocommit is still true when I print out the value:
getJdbcTemplate().getDataSource().getConnection().setAutoCommit(false));
getJdbcTemplate().update(UPDATE_QUERY,params);
How should I do this?