Transaction Management
Hi In our project, there are few scenarios that we have to call at a time more than one OIM API methods. As far as I know, if there is only one method transaction will be taken care automatically. But, in our scenario we are calling more than one method at a time, for example please go through the below code.
I am calling the create method for organization
omgr.create(org);
in the same after creation it has to call provision method
utilityFactory1.provisionObject(Long.parseLong(result),rp.getResourceKey("North America"));
I need a transaction, so that if any of these methods gets failed every thing should be rolled back. Can any one please help me how to achieve the transaction management in OIM API.
I am calling the create method for organization
omgr.create(org);
in the same after creation it has to call provision method
utilityFactory1.provisionObject(Long.parseLong(result),rp.getResourceKey("North America"));
I need a transaction, so that if any of these methods gets failed every thing should be rolled back. Can any one please help me how to achieve the transaction management in OIM API.
0