hello all:
in the datasouce attribute of the jdbcTemplate, I preset its autocommit field to be false; however, in the code I might need to set it to be true once awhile for different stored proc processing.
I tried code such as :
it didn't work - the autocommit field remains the same.Code:Connection conn = DataSourceUtils.getConnection(jdbcTemplate.getDataSource()); conn.setAutoCommit(true);
Anyone can help me on this?
Thanks,
Johnny


Reply With Quote