Transaction management
Hi
I have upgraded from iControl v10 to v11. I have successfully implemented session management in my code but having problems when implementing transaction management. I am working in Java.
This is my sample code:
createLoadBalancer(){
try{
iCtrlInterface.getSystemSession().start_transaction();
createVlan();
createRouteDomain();
createSelfIps();
createSnatIPs();
iCtrlInterface.getSystemSession().submit_transaction();
}catch(Exception e){
iCtrlInterface.getSystemSession().rollback_transaction();
}
}
My Question : Now when I am failing my code near createSelfIps(), it goes into the catch block and when executes the rollback it gives following error :
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode:
faultString: Exception caught in System::urn:iControl:System/Session::rollback_transaction()
Exception: Common::OperationFailed
primary_error_code : 16908289 (0x01020001)
secondary_error_code : 0
error_string : No transaction is open to roll back.
Pls help me understand the problem and the solution.