[Contents] [Prev] [Next] [Index] [Report an Error]

## External Java Applications That Use NIC

If you write an external Java application that interacts with a NIC, include NIC libraries in the application. These libraries are for NIC proxies and local NIC hosts. These libraries are located in the `SDK+AppSupport+Demos+Samples.tar.gz` on the Juniper Networks Web site at: https://www.juniper.net/support/csc/swdist-erx/src.html. You can locate the files in ther SDK/lib/nic directory.

Typically, each NIC resolution process requires one NIC proxy. For example, the OnePopLogin sample data includes two resolution processes:

- Mapping of a subscriber’s IP address to the subscriber’s login name
- Mapping of the subscriber’s login name to the SAE reference

An application that uses both these resolution processes would require two NIC proxies.

The NIC proxy provides a simple Java interface, the NIC application programming interface (API). You configure the NIC proxy to communicate with one resolver. For efficiency if you use NIC in client/server mode, the NIC proxy caches the results of resolution requests so it can respond to future requests for the same key without contacting the resolver.

The SRC software includes a factory interface, the NIC factory, to allow applications to instantiate, access, and remove NIC proxies. It also includes JAR files for NIC client and NIC host libraries.

You must configure an application to communicate with a NIC proxy.

If you are using Java Runtime Environment (JRE) 1.3 or higher, you must include in your application the Java archive (JAR) files, available in the `SDK+AppSupport+Demos+Samples.tar.gz` file on the Juniper Networks Web site at: https://www.juniper.net/support/csc/swdist-erx/src.html . The files are located in the /SDK/lib/ directory.

#### Related Topics

- For more information about the API calls, see the online documentation on the Juniper Networks Web site at http://www.juniper.net/techpubs/software/management/src/api-index.html.
- External Application Requirements for NIC
- External Non-Java Applications That Use NIC
- Creating a NIC Locator to Include with a Non-Java Application

[Contents] [Prev] [Next] [Index] [Report an Error]