ravi_sati Posted July 16, 2009 Share Posted July 16, 2009 Hi, I created a Adhoc report from 1 topic. The Datasource is pointing to Sql Server 2005 Database. This Sqlserver database is keep on updating with some other application.My jasperserver is pointing to that sqlserver database ,when i am running a report, i am not getting the updated values from DB.I need to restart my jasperserver , then only i am geeting updated values from sqlserver DB.Do i missing some setting? Regards,Ravi Dutt Link to comment Share on other sites More sharing options...
kkelleher Posted July 16, 2009 Share Posted July 16, 2009 This sounds like a caching problem. Each dataset cached by Ad Hoc has a maximum time that it stays in the cache: - If a dataset is not used, it is flushed from the cache after 20 minutes. - If the data set is being used, it is still flushed after 60 minutes.You can change this behavior by editing these properties in the applicationContext-adhoc.xml (in WEB-INF): <!-- defaultTimeoutMinutes: the absolute longest time in minutes that a dataset can live in the cache --> <property name="defaultTimeoutMinutes" value="60"/> <!-- defaultUnusedTimeoutMinutes: the longest time a dataset can stay since the last time it was used --> <property name="defaultUnusedTimeoutMinutes" value="20"/> Tweak these values so that JasperServer knows to refresh the results more frequently. Obviously, this may impact performance when reports are run. Thanks, KristenPost Edited by kkelleher at 07/16/2009 19:12 Link to comment Share on other sites More sharing options...
ravi_sati Posted July 17, 2009 Author Share Posted July 17, 2009 Thanks Kristen, it worked for me. Link to comment Share on other sites More sharing options...
noonab Posted December 9, 2012 Share Posted December 9, 2012 for japerserver-pro 5.0 : Go to WEB-INF folder: ~/jasperreports-server-5.0/apache-tomcat/webapps/jasperserver-pro/WEB-INF adhoc-ehcache.xml file Change the values as follows timeToIdleSeconds="0" timeToLiveSeconds="0" Link to comment Share on other sites More sharing options...
gil shimer Posted February 13, 2013 Share Posted February 13, 2013 Hi, Do you know where I can find the configuration for refreshing the cache of reports in general and not only the ad-hoc? I'm using japerserver-pro 5.0 Thanks, Gil 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