harry.clarkknovalent.com Posted September 13, 2007 Share Posted September 13, 2007 I have a class in a jar in my JasperServer lib which provides static methods called in expressions to process various things in a report. I did it this way to make the Java redistributable yet hide it from non-programmers. Is my class loaded once and forever by JasperServer? In which case do my static methods need to be thread-safe? And what impact would that have on performance with heavy usage? Suppose a method is called for a column in a report, i.e., every row, with the report run by >1 user at the same time. Or does JS batch the jobs and run them in sequence? Or is the class loaded with each session supported in JasperServer? If that were so I wouldn't need to restart JS (Tomcat) to pick up a new jar with changes to the class. Link to comment Share on other sites More sharing options...
lucianc Posted September 13, 2007 Share Posted September 13, 2007 If you put a jar in the JasperServer lib folder classes from the jar would only be loaded once, by the web app class loader. JasperServer runs several report simultaneously, hence your static methods need to be thread safe. Regards,Lucian Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now