Transaction support is an optional feature in the JCR and whether the repository implementation at hand supports this feature can be determined via the following call: Repository.getDescriptor( “OPTION_TRANSACTION_SUPPORTED”).

A repository which supports transactions fully integrates with the Java Transaction API (JTA), allowing all node operations to be part of a transaction scope. When a transaction is in progress, the behavior of the JCR APIs slightly changes. For example, the Session.Save() operation doesn’t commit the changes to the repository (and hence make it visible to other sessions) until the transaction has been successfully committed.

Pages: 1 2 3 4 5 6 7 8 9 10 11