Search code examples
javatransactionsalfrescocmisapache-chemistry

Rolling back a transaction in apache chemistry cmis


I am creating a java application which will connect to alfresco repository and perform some operations. I am using apache chemistry cmis for doing these operations. If i encounter an error during these operations , how will i handle the rollback mechanisms to undo the operation performed using the course of the operation ?


Solution

  • Unfortunately each CMIS request has its own transaction, and there is no builtin transaction support across multiple requests! You need to do the necessary back (ie: through versionning for instance), and then implement your rollback logic manually!