Salesforce

How Do I Limit the Use of My Application Using the Magic xpa License Mechanism? (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Limit the Use of My Application Using the Magic xpa License Mechanism? (Magic xpa 3.x)

When you use Magic xpa, Magic xpa uses an internal licensing mechanism to regulate the total number of concurrent users. You have the option of using that same licensing mechanism in your own application, for licensing the number of users who purchase licenses from you.

This is done in three steps:

  1. Use the MakeKey utility to generate a license key for your user

  2. Use LMChkOut() to check out a license as each user logs in

  3. Use LMChkIn() to check the license back in

These are explained below.

Running the MakeKey utility

  1. You will find the Makekey.exe utility in the Magic xpa installation directory. Click on it.

  2. You will be prompted through a series of items. These are specific to the FlexLM product, and your answers will depend on what you are trying to do.

  3. When you are finished, you will have a feature that your users can use with your application.

Using LMChkOut()

  • In your application, when a user logs in, call the LMChkOut() function to check out a license. The syntax is:

LMChkOut(<license file name>, <feature name>, <version>)

The return code will indicate whether the license is ok, not found, expired, and other conditions (see the Magic xpa help for details).

Using LMChkIn()

  • In your application, when a user logs out, call the LMChkIn() function to check the license back in. The syntax is:

LMChkIn(<feature name>)

The return code will be zero if it checked in successfully, 8 otherwise.

Reference
Attachment 
Attachment