When do I need to re-compile Jasper reports

I’m using JasperReporting engine, and i need to optimize reporting performance. Currently my application compiles reports from *.jrxml files every time, as I’m not changing the reports now and app is not able to generate user-defined reports I should compile them once and use .jasper files in future….. AM I RIGHT?? And do I need to re-compile them?
Thanks in advance!

Answer

Let your application check both the .jrxml file and the .jasper file; if the later is missing or older than the .jrxml, recompile, otherwise just use the .jasper file.

Leave a Reply

Your email address will not be published. Required fields are marked *