Aug 2nd, 2006, 04:39 AM
I guess it should be sufficient to have a Dao extending JdbcDaoSupport, wired with the DataSource you also use for building the SessionFactory.
From there you can call getJdbcTemplate().
If inside a transactional context, the Connection of the current hibernate session should then be used by the template.
Aug 22nd, 2012, 04:55 AM
See your tables store engine if you use mysql.I encounter the same issue as you.And i figure out mysql tables stored with mysiam.MyISAM is not support transaction in mysql,but innodb do.