AnsweredAssumed Answered

Multiple transactions in one session

Question asked by ivancich on Feb 4, 2010
The wiki page on using JCR indicates that to use explicit transactions, one must create a transaction before creating the session (see http://wiki.alfresco.com/wiki/Introducing_the_Alfresco_Java_Content_Repository_API#Explicit_Transactions).

On the other hand, the JCR 1.0 specification does not seem to indicate this requirement. See the example code in section 8.1.2 (p. 227) of the spec at http://www.day.com/specs/jcr/1.0/8.1.2_User_Managed_Transactions__Sample_Code.html.

So is it possible using the JCR interface to have multiple explicit transactions per session, so new sessions do not have to be created?

Outcomes