Forum Discussion
stojoman_258881
Nimbostratus
Jun 21, 2016multiple 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: SystemSes...
uchi_122495
Cirrus
Jun 23, 2016Hi 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_258881Jun 27, 2016
Nimbostratus
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
