External Non-Java Applications That Use NIC
If you write an application in a language other than Java, you can use the NIC access interface module, a simplified CORBA interface, to perform one or more resolutions.
For information about the NIC access interface module, see the API documentation in the SDX software distribution in the folder SDK/doc/idl/nic or on the Juniper Networks Web site at
http://www.juniper.net/techpubs/software/management/sdx/api-index.htmlCreating a NIC Locator to Include with a Non-Java Application
A NIC locator provides the same functionality as a NIC proxy, but is designed to work with non-Java applications.
You use the NIC access interface module to include NIC locators with your application by compiling the IDL file with your application files.
To use the NIC access interface module to create NIC locators:
- Connect to the directory.
- Obtain a CORBA reference to the NIC access interface from one of the following:
- The access IOR provided in the directory in the dynamic configuration DN under the hostname—typically, host/demohost.
You can read this information from SDX Admin from a host under ou=dynamicConfiguration, ou=Configuration, o=Management, o=umc.
- The path name of the IOR file (nic.ior) on the NIC host—typically, /opt/UMC/nic/var/run/nic.ior.
- A corbaloc URL in the format:
corbaloc::<host>:8810/NicAccess
- From the NIC access interface module, obtain a NIC locator, as identified by NicFeature. For example:
feature = access.getLocatorFeature(nicNameSpace); //nicNameSpace example "/NicLocator/ip"- Search for the key. For example:
feature.lookupSingle(NicLocatorKey key) //NicLocatorKey is coming from the IDLFor information about the NIC access interface module, see the API documentation in the SDX software distribution in the folder SDK/doc/idl/nic or on the Juniper Networks Web site at
http://www.juniper.net/techpubs/software/management/sdx/api-index.html