Announcement Announcement Module
Collapse
No announcement yet.
Simple Hibernate Transaction Rollback test Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Stijn,

    If you use JUnit to test the transactions, try to manage your transaction from the testclass instead of the service.

    Extend the testclass from AbstractTransactionalSpringContextTests and use the provided TransactionManager from that class instead of managing your transactions from the service.
    Maybe there is something wrong with your transactionmanager instance you provide in the service layer.

    Try it this way to see if that works.

    Koen

    Comment


    • #17
      Originally posted by karldmoore View Post
      Are you using InnoDB?
      As you probably expected that did the trick!

      tx a lot (all of you) for your help!

      Stijn

      Comment


      • #18
        Originally posted by TheStijn View Post
        As you probably expected that did the trick! tx a lot (all of you) for your help!
        Great news, thanks for posting back. Glad it's all working!
        Last edited by karldmoore; Aug 29th, 2007, 11:27 AM.

        Comment

        Working...
        X