Configuring Lease Mode

Declare Variables/Constants

Attribute attrAppContext = null;
ApplicationContext appContext = null; 
String CONTACT_SERVER = "no-net";

API Calls

To obtain lease, execute the APIs in the specified sequential order only:

attrAppContext = new Attribute();
attrAppContext.set(LicensingConstants.SNTL_ATTR_APPCONTEXT_CONTACT_SERVER, CONTACT_SERVER);
appContext = new ApplicationContext(attrAppContext);

Sample Workflow—sntl_lease_demo

Refer to the sample sntl_lease_demo (provided with the SCL Add-on for RMS Package) for a specific API function, its parameters, and usage. Here is the workflow of the sample: