Class TransactionContext

Represents the transaction on behalf of the component that wants to
explicitly demarcate transaction boundaries. After having been prepared,
schedules a task that rolls back the transaction if some time passes without
any further action. This will guarantee that global objects locked by one
of the resources' InternalXAResource.prepare(org.apache.jackrabbit.core.TransactionContext) method, are eventually
unlocked.

removeAttribute

prepare

Prepare the transaction identified by this context. Prepares changes on
all resources. If some resource reports an error on prepare,
automatically rollback changes on all other resources. Throw exception
at the end if errors were found.

commit

Commit the transaction identified by this context. Commits changes on
all resources. If some resource reports an error on commit,
automatically rollback changes on all other resources. Throw
exception at the end if some commit failed.