We are attempting to implement two phase commit on the Java/Jboss/Apache atmosphere.

However we've difficulty focusing on how we are able to test it really works? what are the gui tools that will help us test drive it?


I'm able to think about handful of situations

  • unplug once from the assets taking part inside a 2PC. my personal favorite
  • let among the db procedures fail with integrity constraint

The transaction should rollback.

I'd attempt to add some hooks for your application to pressure failing each and every stage 1 by 1 so that you can look into the expected outcome.

Or use unit testing if thats simpler.