Begin changeProduct license

The ProductLicense class enables you to request licenses for products installed on the AS/400. To be compatible with other AS/400 license users, the class works through AS/400 product license support when requesting or releasing a license.

The class does not enforce the license policy but returns enough information such that the application can enforce the policy. For example, when a license is requested the ProductLicense class will return the status of the request -- license granted or denied. If the request is denied the application must disable the behavior that required the license since the Toolbox does not know which function to disable.

Use the ProductLicense class with AS/400 license support to enforce the license of your application:

Example: ProductLicense scenario

For example, suppose your customer bought 15 concurrent use licenses for your product. Concurrent use means 15 users can use the product at the same time, but it doesn't have to be 15 specific users. It can be any 15 users in the organization. This information is registered with AS/400 license support. As users connect your application uses the ProductLicense class to request a license.

When a user stops running the application, your application releases the license by way of the ProductLicense class. The license is now available for someone else to use.

For more information and a code example, refer to the ProductLicense javadoc.End change