Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

2 phase commit

 
Will Myers
Ranch Hand
Posts: 383
Java jQuery Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic