Forum Discussion
Gavin_104961
Jun 06, 2011Nimbostratus
add pool question (JSP)
Could any experts help me with add a pool in JSP?
i used following code (From: http://devcentral-llix.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/1086385/Java-iCont...
i've used following code, it works now.
========================================
String[] pool_names = { "test_pool" };
iControl.LocalLBLBMethod[] lb_methods = new iControl.LocalLBLBMethod[1];
lb_methods[0] = iControl.LocalLBLBMethod.LB_METHOD_ROUND_ROBIN;
CommonIPPortDefinition[][] membersToAdd = new CommonIPPortDefinition[1][1];
CommonIPPortDefinition member1 = new CommonIPPortDefinition();
member1.setAddress("10.10.10.10");
member1.setPort(80);
membersToAdd[0][0] = member1;
m_interfaces.getLocalLBPool().create(pool_names, lb_methods,membersToAdd);
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