English 中文(简体)
Setting Transaction Isolation Level in Berkeley DB Java Edition for Distributed Transactions (XA)
原标题:

I am using distributed 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.

问题回答

暂无回答




相关问题
Set isolation w/o an ifxtransaction?

I m trying to execute a simple select query using IfxCommand. I would like to set isolation to dirty read, but I have only found examples of setting isolation level in the context of an IfxTransaction....

TRANSACTION ISOLATION LEVEL REPEATABLE READ in SQL Server

What are the risks or performance degradation when using SET TRANSACTION ISOLATION LEVEL REPEATABLE READ? We have some SP that are called from BizTalk services. We are getting deadlock sometimes. If ...

Repeatable Read - am I understanding this right?

Trying to completely understand SQL Server Isolation Levels - notably REPEATABLE READ. I have a sproc that starts a transaction and puts a cursor around some data (boo hiss). This can be a fair ...

TSQL Snapshot Isolation

Using SQL2k5, I have a staging table that contains columns that will populate numerous other tables. For instance, a statement like this: INSERT INTO [appTable1] ([colA], [colB]) SELECT [...

Need Help about ADO.Net Transaction

I develop C# window application with Microsoft SQL Server 2005 sp3. My Application has ploblem while one of client save Order Document. Another client cannot select data from Order table util saving ...

热门标签