Rolling back a transaction in apache chemistry cmis

674 Views Asked by At

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 ?

1

There are 1 best solutions below

0
Younes Regaieg On BEST ANSWER

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!