Inside of updateBooking() the createAudit() works fine and it creates the audit, but the update does not work. I can even take the createAudit() for testing purposes and the same result.
Quote:
Another thing that comes into play here is the actual transaction semantics. Is a single JTA trsnaction in effect foor the entire updateBooking() processing?
Yes in the end, we would like it to be one transaction. Let me give you our Project skeleton:
DAO, POJOs, mappings, _rootDAO (the file that I posted with the threadedSessions, update, delete, etc) - Inside a HAR file and deployed seperately
EJBs - deployed seperately
We did not want to sprinkle any Hibernate internal code that deals with session, etc so we put it all in our DAOs.
Everything seemed to work fine in Hibernate 2 (save, update, etc.) When we had any problems with any objects, we were even successful in our rollback which was controlled by our EJB.