AnsweredAssumed Answered

single transaction for Alfresco API call & custom DB call

Question asked by opensrcguy on Jul 25, 2011
Hi All,

How can we have a single transaction for Alfresco API call and custom database call ?

Here is our scenario,

1. In our java-backed webscript, we are creating a content in Alfresco using Alfresco API ( say NodeService) & also having some database operations to our custom database.

2. When exception are thrown in custom db operations, we want to rollback the content creation in Alfresco and vice versa ..

To achieve this, we need to have a single transaction taking care of both operation. Anybody have info, please share it here.

Regards,
Santhosh

Outcomes