This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
In "Hibernate in Action", in the transaction section it states that session.beginTransaction() will join the JTA transaction, and tx.commit() is called to communicate witht he databse.
Is this a must, if you have your method demarcated using EJB 3.0 transaction. declaring it as "RequiresNew" as the annotation on the method?
Another person here at work stated that in another company he worked using EJB 2.1 they did not need to have a call to session.beginTransaction() or tx.commit(), that because you have a CMT transaction, it handles it all. He was also using Weblogic and not JBoss in that other company.
Yup hibernateSession.beginTransaction() joins JTA. When I used with weblogic, since I don't need JTA, I ended up by saying not supported for all SLSB methods.
Howwever I have not tested what impact it will make when I will not use begintransaction and commit.