multiple sessions using transactions
Hi, we are using Java version of IControl API. We are using one and the same test user for multiple, parallel requests. Here is snippet of code that is behaving very inconsistently:
SystemSessionBindingStub sessionStub = interfaces.getSystemSession();
sessionStub.start_transaction();
deleteServer();
interfaces.getManagementPartition().set_active_partition(XXX);
interfaces.getGlobalLBWideIP().delete_wideip(new String[] { "xxx"});
interfaces.getGlobalLBPool().delete_pool(new String[] { "pool" });
sessionStub.submit_transaction();
When only one session is active this works just fine and everything is deleted. But if test user is being used by someone else for other requests at the same time, submit_transaction() throws:
Exception caught in System::urn:iControl:System/Session::submit_transaction() Exception: Common::OperationFailed primary_error_code : 16908289 (0x01020001) secondary_error_code : 0 error_string : No transaction is open to submit.
I suspect that having multiple sessions for the same test user is causing these issues. Am I right? Is there some configuration that will prevent sessions to interfere with each other?
best regards Stoyan