Is nested transaction supported in Alfresco?

cancel
Showing results for 
Search instead for 
Did you mean: 
kaffi
Partner

Is nested transaction supported in Alfresco?

Jump to solution

I am now implementing a cron job based on the scond part of the following tutorial (Scheduled Jobs | Alfresco Documentation ) . The Action Based cronjob is using a TransactionHelper in the parent class (

org.alfresco.repo.action.scheduled.CronScheduledQueryBasedTemplateActionDefinition)

. My question is now if Alfresco supports the start of a second transaction within the executeImpl function in the implementation class of this Action.

Thank you for your information in advance.

Regards

Kaffi

1 Solution

Accepted Solutions
janv
Alfresco Employee

Re: Is nested transaction supported in Alfresco?

Jump to solution

Hi,

It is possible to create new transaction whilst within an existing transaction. However, they're essentially two separate transactions (not nested) that cannot see each others isolated DB changes. Do you really need a new transaction ?

See for example replies here:  

Regards,

Jan

View solution in original post

1 Reply
janv
Alfresco Employee

Re: Is nested transaction supported in Alfresco?

Jump to solution

Hi,

It is possible to create new transaction whilst within an existing transaction. However, they're essentially two separate transactions (not nested) that cannot see each others isolated DB changes. Do you really need a new transaction ?

See for example replies here:  

Regards,

Jan