Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Should roll back transaction but cannot - no transaction available

  1. #11
    Join Date
    Aug 2004
    Posts
    2,715

    Default

    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.

    Regards,
    Andreas

  2. #12
    Join Date
    Jul 2010
    Posts
    28

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •