This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
What are various way to manage transactions in J2EE application.
I have two methods in my simple DAO in both i am getting connection from the application connection pool,one method which updates the DB1 and other updates DB2.(I want to manage them as one single transaction.
this is the flow Client meth1() -calls--> stateless session bean meth1()- calls---->which meth1() and meth2() of DAO.
Can i maintain transcation at sateless session bean meth1()? If yes I am afraid that in my DAO i am gettting fifferent connects inmeth1() and meth2().Will rollback on session bean rollback both meth1 and meth2 of DAO?