aspose file tools
The moose likes Object Relational Mapping and the fly likes Caching Issue - Data not getting refreshed Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Caching Issue - Data not getting refreshed" Watch "Caching Issue - Data not getting refreshed" New topic
Author

Caching Issue - Data not getting refreshed

Himanshu
Greenhorn

Joined: Nov 05, 2008
Posts: 5
Hi,
I have enabled second level query caching. Problem is when data is updated in the backend directly (not from UI), same is not reflected unless cache time expires. I have defined app-cache.xml like:


Even though time set is 60 seconds, no change is reflected before 120 seconds have elapsed (which is, I think, default value set in defaultCache).

Any suggestion to resolve issue is welcome.
Subin Sugunan
Greenhorn

Joined: Jul 01, 2009
Posts: 14
Set proper fetch policy.


Thanks and Best Regards
Subin Sugunan
Himanshu
Greenhorn

Joined: Nov 05, 2008
Posts: 5
Subin Sugunan wrote:Set proper fetch policy.

And what that would be?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Caching Issue - Data not getting refreshed
 
Similar Threads
Ajax and the Caching issue
Servlet Caching Problem!!!!!!!!!!!!!!!!!
Problem in data integrity when using read only entity bean
Performance considerations for Portlets?
submit button only works once?