[
https://issues.jboss.org/browse/TEIID-2957?page=com.atlassian.jira.plugin...
]
Steven Hawkins commented on TEIID-2957:
---------------------------------------
The easiest approach here would be something like a 1-pc LocalTransaction resource.
I'll see how hard that would be to wire into the RA.
We can use
https://github.com/spring-projects/spring-data-mongodb/blob/master/spring...
for reference.
Just trying to handle this in the translator could be possible, but would intertwine some
transactional concerns. We'd have to detect a transaction on the thread, then create
the mongo client session and attach a synchronization to the txn to do the final commit /
rollback - so still effectively 1-pc. Another drawback is that code is generally not
needed for environments like springboot, which would instead use the transactionmanager
above or some kind of composite with other platform transaction managers.
MongoDB: Implement Compensating transactions
--------------------------------------------
Key: TEIID-2957
URL:
https://issues.jboss.org/browse/TEIID-2957
Project: Teiid
Issue Type: Feature Request
Components: Misc. Connectors
Affects Versions: 8.5
Reporter: Ramesh Reddy
Assignee: Steven Hawkins
Priority: Major
Fix For: 12.1
Based on Narayana transaction manager, which is the TM that JBoss EAP TM based on one can
build compensating transactions over MongoDB
https://github.com/jbosstm/quickstart/blob/master/compensating-transactio...
https://plus.google.com/wm/1/events/cnbaif9aiiaarnjtd047nt1pksc
Need to see the version number matches then need to buiild the necessary framework around
mongodb translator
--
This message was sent by Atlassian Jira
(v7.12.1#712002)