开发者

Setting Transaction Isolation Level in Berkeley DB Java Edition for Distributed Transactions (XA)

开发者 https://www.devze.com 2023-01-19 06:32 出处:网络
I am using di开发者_如何学Gostributed transactions in a BDB JE application to coordinate transactions across multiple BDB JE environments.I want to set the transaction isolation level to serializable.

I am using di开发者_如何学Gostributed transactions in a BDB JE application to coordinate transactions across multiple BDB JE environments. I want to set the transaction isolation level to serializable. To begin distributed transactions, I use an Xid that I generate and have to ensure is globally unique, eschewing BDB JE's native Transaction class. The transaction branch that starts is ThreadLocal, so null is passed into the transaction field in operations. So how do I set the isolation level? Is the isolation level already defaulted to serializable? My Google-fu isn't turning anything up...


I am a huge fan of Stackoverflow, but I'm also the Product Manager for Oracle Berkeley DB so I have to first suggest that the "right place" to ask this kind of question is on the OTN Forum for BDB JE (http://forums.oracle.com/forums/forum.jspa?forumID=273).

Here are the Javadoc for BDB JE http://download.oracle.com/berkeley-db/docs/je/3.2.76/TransactionGettingStarted/BerkeleyDB-JE-Txn.pdf

And here is information about LockMode http://download.oracle.com/berkeley-db/docs/je/3.3.62/java/com/sleepycat/je/LockMode.html

Try Google-Fu of: site:download.oracle.com berkeley db java edition

The docs for all products live in the Oracle "DocArch" system which publishes to the download server (because when it was first designed there was no "Interweb" only CDROMs and printed materials which you would download, get it?).

Good luck.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号