Based on which parameters should I choose ChainedTransactionManager versus XA implementation such as Atomikos?

177 Views Asked by At

I have a scenario wherein:

  1. There are two data bases involved namely dataSourceOne and dataSourceTwo
  2. Some data is saved in dataSourceOne and rest is in dataSourceTwo
  3. If anything fails while saving data to dataSourceOne we should rollback
  4. If anything fails while saving data to dataSourceTwo we should rollback.

I understand that I should be looking for a Distributed Transaction implementation to deal with above mentioned scenario. I have come across two choices 1. ChainedTransactionManager and 2. Two Phase Commit using XA. For #2 choice Atomikos can be an implementation choice.

But I can not understand based on which parameters should I make the choice between two. I have even gone through an article for the same. This one too does not have much details

It would be of great help if you can guide. Thanks in advance.

0

There are 0 best solutions below