jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ChadDavis <chadmichaelda...@gmail.com>
Subject Re: Concurrent Updates
Date Fri, 15 Jul 2011 21:09:25 GMT
> If I where using JDBC I would create a transaction, create the order, update
> the stock levels then commit the transaction. If 2 transactions had updated
> the stock level at the same time, the last transaction to commit would throw
> an exception saying that the underlying data had changed. I could then retry
> the failed transaction until it completed or there was not enough stock to
> complete the other.
> What will JackRabbit do if I try to modify the same node/property from
> different session?

I'm not familiar with the transaction API for the JCR, but it's
covered in the specification.  The Session doesn't write any of it's
changes until you session.save().  Transactions are something more
than this.

View raw message