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.
public static String contactServer = "localhost"; Attribute attrAppContext = null; ApplicationContext appContext = null; String usageInfo = null;
Use the following API calls to obtain usage path information:
>attrAppContext = new Attribute();
>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.