-
1. Re: How to use compensating API implements a xa dasource?
gytis May 10, 2016 4:33 AM (in response to kylin)Compensating transactions implement a different protocol to the XA. You can surely use compensating transactions to assure atomic outcome in your application. Just keep in mind, that at the moment crash recovery is not yet implemented (although it is in our plans). Other than that it's fully functional.
There are a couple of posts in our blog from a couple years back, which you can read to get yourself more familiar with compensating transactions: Narayana team blog: Compensating Transactions: When ACID is too much (Part 1: Introduction), Narayana team blog: Compensating Transactions: When ACID is too much (Part 2: Non-Transactional Resources).
Also try our quickstarts: quickstart/compensating-transactions at master · jbosstm/quickstart · GitHub.
-
2. Re: How to use compensating API implements a xa dasource?
gytis May 10, 2016 4:50 AM (in response to gytis)In theory I think it should be possible to bridge XAResource to the compensating transaction, which could control MongoDB. But at the moment it's just a speculation, I would need a bit more time to think about this.
p.s. we have a JIRA for the opposite scenario to yours: [JBTM-1680] Allow 2PC participants to enlist in a compensation-based transaction - JBoss Issue Tracker. But since we never had such requirement, nobody worked on it up to now.
-
3. Re: How to use compensating API implements a xa dasource?
smarlow May 17, 2016 10:00 AM (in response to kylin)[1] does not answer your question but you may want to follow the discussion and contribute as well. It might be interesting for you to describe how you are using MongoDB in your application (in terms of what types of components are reading/writing MongoDB).
Regards,
Scott
-
4. Re: How to use compensating API implements a xa dasource?
kylin May 23, 2016 2:14 AM (in response to gytis) -
5. Re: How to use compensating API implements a xa dasource?
gytis Jun 2, 2016 10:19 AM (in response to kylin)kylin, could you paste the link to your source code?
-
6. Re: How to use compensating API implements a xa dasource?
tomjenkinson Jun 14, 2016 9:06 AM (in response to gytis)Hi Kylin,
Please can you provide a link to your source code so Gytis can take a look?
Thanks,
Tom
-
7. Re: How to use compensating API implements a xa dasource?
tomjenkinson Oct 31, 2016 4:45 AM (in response to kylin)Hi kylin, how did you get on with this? Can we help you further?