You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Establish a license policy that suits your business. LM-X is configurable for a large variety of different license schemes, which usually consists of one or more features in your software. If your application has more than one differently licensed module, the license file will contain multiple features.

To establish a license policy, create one or more license template files, which contain a LICENSEFILE tag that encloses one or more FEATURE tags. Each FEATURE tag consists of a number of SETTING tags that specify the feature's individual attributes and define it as one of the following:

Node-locked licenses

Designed for individual users, node-locked licenses licenses allow a single instance of an application to run on a specified host. The following diagram shows an example of a node-locked license.

Floating licenses

Floating licenses allow an application to be used on a network. The example below shows an example of a floating license.


Determining whether to use node-locked or floating licenses depends on your end user's needs and how you prefer to distribute your software.

Time-limited licenses

Time-limited licenses are used for restricting usage periods and allowing subscription-based licensing models.

Trial licenses

 Trial licenses allow users to evaluate your software before purchase.

Pay-per use licenses

Pay-per-use licenses let you back-bill customers after using a license.

Token-based/product suite licenses

  Token-based/product suite licenses are used for letting you bundle products in diverse ways.

 

Some example XML license templates corresponding to these basic licensing policies are given in the following section, and you can find a number of sample licenses in the /examples/licenses directory of the LM-X distribution. For complete details about each of these license models and the settings you can use within features, see the LM-X Developers Guide.

You can easily read existing templates and generate licenses from them using the LM-X License Generator, xmllicgen (located in the platform-specific directory). The XML license template is an input for the LM-X License Generator. Only ASCII file format is supported. The xmllicgen tool does not work with UTF-8 or any other Unicode-based encoding.

You can use xmllicgen to create licenses manually or automatically. You can integrate automated license generation into business applications; for example, the license generator can be called by a web service to create licenses based on web storefront requests. The XML format of license file templates facilitates integration with your internal systems for automatic license production (issuing) of every possible licensing model (trial, fixed date, activation date, etc.).

To generate a license, use the following command, with the relative paths for your system: 

  • On Windows, type: xmllicgen.exe -output example.lic ..\examples\licenses\nodelocked.xml
  • On Unix, type: ./xmllicgen -output example.lic ../examples/licenses/nodelocked.xml

Note: If you are using the evaluation version of LM-X, vendor is "demo."
.

  • No labels