Forum Discussion
uchi_122495
Cirrus
Hi stojoman, you should set a Session Identifier to each request header to prevents multiple concurrent requests.
Please see https://devcentral.f5.com/articles/v11-icontrol-sessions
Here is sample
SystemSessionBindingStub sessionStub = interfaces.getSystemSession();
//get session identifier
String session_identifier = String.valueOf(interfaces.getSystemSession().get_session_identifier());
//set session identifier to each stabs
sessionStub.setHeader("urn:iControl", "session", session_identifier);
interfaces.getGlobalLBWideIP().setHeader("urn:iControl", "session", session_identifier);
interfaces.getGlobalLBPool().setHeader("urn:iControl", "session", session_identifier);
...
// start transaction
sessionStub.start_transaction();
// do something
...
// submit transaction
sessionStub.submit_transaction();
In addition,
set_active_partition()
is not support Session, you need to use sessionStub.set_active_folder()
.stojoman_258881
Jun 27, 2016Nimbostratus
Hi uchi,
thank you for your proposal. Adding session_id to each request solved some of my problems. Unfortunately
running two transactions in parallel with the same user is still not working. Is this supported by IControl -
Can a single user start more than one transaction at the same time?
best regards
Stoyan