Forum Discussion
DannyG_34437
Cirrus
Aug 06, 2010iControl assembly into Netbeans??
Hi, a java and an F5 newbe here. I have netbeans loaded and
have downloaded the iControl java binary. How do I load (??) the iControl
binary into netbeans? Sorry for such a basic question. Appreciate...
Aug 06, 2010
I would recommend using the iControl library for Java, not the wrappers. The Wrappers were a project to provide a few use cases around the core APIs contained in the iControl library for java (iControl.jar). The wrappers do not provide the entire API set and you may not get all the functionality you need. For instance, I believe it's just LTM centric so there aren't any GTM based wrapper methods in there for you.
The iControl Library for Java is the entire iControl method set compiled from the WSDL definitions and packaged with a container class that makes accessing the methods very simple.
There are no javadocs for the iControl library for Java as we rely on the iControl API documentation on DevCentral to serve all the languages we support. We tried to make the API docs very language neutral so reading the docs should be fairly straightforward.
As for integrating the library for Java, you just need to add the iControl.jar as a reference to your project. You will likely need to add the 3rd party libraries in the distribution as well (axis, etc).
Then in your code to access the methods, you instantiate a iControl.Interfaces object, initialize it with your credentials, and then access the various iControl interfaces with their accessor methods. The following example is all the code you need to access the LocalLB.VirtualServer interface's get_list() method to return a list of the virtual servers.
iControl.Interfaces interfaces = new iControl.Interfaces();
interfaces.initailize("bigip_address", "bigip_user", "bigip_pass");
String [] vs_list = interfaces.getLocalLBVirtualServer().get_list();
Hope this helps...
-Joe
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
