The ProductLicense class enables you to request licenses for products installed on the iSeries™. To be compatible with other iSeries license users, the class works through iSeries 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. 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 because the IBM® Toolbox for Java™ does not know which function to disable.
Use the ProductLicense class with iSeries license support to enforce the license of your application:
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 does not need to be 15 specific users. It can be any 15 users in the organization. This information is registered with iSeries 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.