We expose REST services which can expose POST, PUT, GET and DELETE operations. Consumers often design there UI in such a way that the user with a single click can create, update and delete. If they send us three calls for PUT POST and DELETE, then it is possible that one of them might fail and cause data inconsistency. Currently we create a wrapper service which allows them to call one service which calls all the three operations and we guarantee a transaction with JBOSS transaction controls, so if one operation fails then the all transactions are rolled back.
Is there are better way of handling this, which can help us avoid creating these wrapper service?