I have a scenario wherein:
- There are two data bases involved namely
dataSourceOneanddataSourceTwo - Some data is saved in
dataSourceOneand rest is indataSourceTwo - If anything fails while saving data to
dataSourceOnewe should rollback - If anything fails while saving data to
dataSourceTwowe 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.