Getting Usage Path Information

The usageInfo query (sntl_licensing_get_info) API provides the path for the folder containing usage files. This folder is copied to the proxy machine for uploading usage files. It also provides the path where the acknowledgment files (corresponding to uploaded usage files) have to be copied.

Declare Variables/Constants

public static String contactServer = "localhost";

Attribute attrAppContext = null;
ApplicationContext appContext = null;
String usageInfo = null; 

API Calls

Use the following API calls to obtain usage path information:

>attrAppContext = new Attribute();

>attrAppContext.set(LicensingConstants.SNTL_ATTR_APPCONTEXT_CONTACT_SERVER, contactServer);

>appContext = new ApplicationContext(attrAppContext);

>usageInfo = appContext.getInfo(LicensingConstants.SNTL_QUERY_SCOPE_NONE, LicensingConstants.SNTL_QUERY_USAGE_INFO_LATEST);

NOTE   When the sntl_licensing_get_info API call is successful, the usageInfo string contains an XML-based output. The output contains detailed information related to usage path and acknowledgment path.