mardi 28 juillet 2015

Sequence of API Calls in Java

I Have 3 sequence of API's need to execute to update different fields in Database.It is a single transaction

But the problem is if one of the API call fails I need to Roll back my transaction

The sequence of API Calls are 1)editRequest 2)AddWorklog 3)Addnote

Could any one if one API call fails ,how to rollback other API calls?

Aucun commentaire:

Enregistrer un commentaire