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.
Should all vendors support Two phase commits for EJBs?. I understand two-phase commit as being for distributed databases. But can somebody give me a practical scenario where two phase commits are used for EJBs, please. Just an example would do. thanx,
Two-phase commit, as a protocol for distributed transactions, could be used where multiple distributed *participants* are involved in the transaction, which could be anything -- another EJB server, a couple of different databases, etc. So it's just the way the transaction manager (as part of the server) can make sure that all participants have agreed to commit (phase one) before TELLING them to go ahead and do it (phase two). Two-phase commit is not absolutely mandated as the protocol for EJB servers to use, but it is one example (by far, the most typical) of an implementation of distributed transaction management. cheers, Kathy