posted 13 years ago
Hi,
I was asked in an interview to explain how a 2 phase commit could be implemented in a distributed environment, while I know what the term means I'm unsure how it would work in practice. The example given was a database transaction and a JMS message that have to be committed together because the JMS message kicks off some other process that relies on the data being present in the database. Any ideas how you could implement this?