CouchBase Java Client and Handling Transactions

Hello All,

We are using Couchbase 2.1.0 enterprise version with Java Couchbase Client 1.1.6 version. Application entirely integrated and supported with Spring and Spring Transaction.

We are unable to figure out the way for handling transaction in Couchbase. As part of one transaction, we have a need to bind MySQL DataSource, Couchbase and JMS resources together. Can you please help us with your inputs to achieve this? Really appreciate your kind help.

Regards,
Manjunath

1 Answer

« Back to question.

Hello,

Couchbase, like most of the NoSQL engine, is not transactional (each operation are atomic).

So if you want to be able to manage "transaction" in the context of a distributed/global Tx context you need to do it in your code with "compensation"

We have documented one approach here:
http://www.couchbase.com/docs/couchbase-manual-2.1.0/couchbase-views-sam...

Regards
Tug
@tgrall