Why are you committing the connection? That'll work while you're using just JDBC transactions, but if you switch to distributed transactions, it'll cause problems. You should get the correct transaction object and commit that.
I have no idea what Session.commitTransaction() does, as it's not part of hibernate or JDBC.
However, this isn't going to solve your problem. You should read up on the correct way to use transactions and hibernate. Chapters 2, 3 and 19 of the refdocs might help.
_________________ Code tags are your friend. Know them and use them.
|