cancel
Showing results for 
Search instead for 
Did you mean: 

Is nested transaction supported in Alfresco?

kaffi
Confirmed Champ
Confirmed Champ

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 ACCEPTED ANSWER

janv
Employee
Employee

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 answer in original post

1 REPLY 1

janv
Employee
Employee

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