Hi Guys,
I am a relative newbie in the hibernate world and was hoping one of you could answer this for me.
Why do we need to join the CMT transaction using the special WebSphereExtendedJTATransactionLookup class in Websphere application server or for that matter for any other application server.
Isnt it true that in case, say there is a SQLException thrown by ones' code, the Websphere Application server rollsback any transactions on the Datasource that Hibernate is trying to communicate with. So even if Hibernate is not registered itself for callbacks, wouldnt the transaction get rolled back since the EJB CMT would rollback using the JDBC driver that is configured for the datasource
Please, am really curious to find out more about this. I have tried to be as coherent as possible but excuse me if it does not seem to make sense to you. I would try to be more verbose.
_________________ Shivreet Sekhon
|