Andy Seaborne wrote:
TDB 0.9.0 will have support for ACID transactions, giving better robustness and making it easier to use in concurrent access applications.

This is to announce the start of development builds for transactional TDB (TxTDB) which will become TDB 0.9.0 when the code reaches stability.

Hi Andy,
I am happy to see that the intention is to have TxTDB merged into TDB 0.9.0.

For people wanting to help with the "Testing, testing, testing" bit.

This is how you can checkout/compile and install TxTDB artifacts in your
local Maven repo:

cd /tmp
svn co http://svn.apache.org/repos/asf/incubator/jena/Experimental/TxTDB/trunk/ TxTDB
cd /tmp/TxTDB
mvn install

This is how you specify a dependency on TxTDB in your pom.xml:

  <dependency>
    <groupId>com.hp.hpl.jena</groupId>
    <artifactId>tx-tdb</artifactId>
    <version>0.9.0-SNAPSHOT</version>
  </dependency>

This is how you can use it:

  Location location = ...
  StoreConnection connection = StoreConnection.make(location);
  DatasetGraphTxn dsg = connection.begin(ReadWrite.WRITE);
  try {
      // use dsg as an usual DatasetGraph to change your data ...
      dsg.commit();
  } catch (Exception e) {
      dsg.abort();
      // ...
  } finally {
      dsg.close();
  }

You can find other 'examples' in the test suite:
http://svn.apache.org/repos/asf/incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/

Paolo


Reply via email to