Jump to content

Determining the jasperserver.license information


vishworks

Recommended Posts

Hi,

      We currently use JasperReports 3.6 in one of our applications and there is a requirement to programmatically determine the license expiration information and alert the operations team about expiration of the license and subsequently initiate the necessary steps to procure a new license (preferably a month in advance).

We have the license file available as jasperserver.license as specified in the Websphere using the -Djs.license.directory argument.

Is this possible? If yes it would be really helpful if you have some pointers on this. If not what happens when the license expires. How will this manifest itself in terms of usability, generation/scheduling of jrxml reports etc.

Thanks and Regards,

Vishy

 

 

 

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You can get the license expiration date by calling com.jaspersoft.jasperreports.license.LicenseManager.getLicenseInfo().getExpirationDate().  You can have a report that uses a text field expression to display that.

When the license expires, the Flash Maps/Charts/Widgets will stop working, you won't be able to compile, execute or export reports that embed such components.  Other reports will work fine.

Regards,

Lucian

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...