Customizing the Default Standalone License Filename/Path

Declare Variables/Constants

String FILE_NAME_AND_OR_PATH = "myLicenseFile";
Attribute attrConfig = null; 

API Calls

To customize the default standalone license file name/path in your application, execute the APIs in the specified sequential order only:

>attrConfig = new Attribute();

>attrConfig.set(LicensingConstants. SNTL_ATTR_CONFIG_LSERVRC_FILE, FILE_NAME_AND_OR_PATH);

>LicensingAPI.configure(attrConfig);

NOTE   The ApplicationContext creation and other licensing API should be implemented after the configure API.