[jboss-user] [JBossCache] - Automatic refreshes of a cache

suppyam do-not-reply at jboss.com
Fri Sep 8 00:41:32 EDT 2006


I have this kind of a situation:

MY application starts up. There is a normal java class that initializes my cache and adds all the nodes to TreeCache, starts the TreeCache service... I can access my data using this structure. Everythig works fine.

I need this cache, however, to be automatically refreshed every 2 hours. The data is contained in a database. I have a datasource setup for this.

I am unable to understand how a Cache Loader fits into my scenario. Can i use one? Can I configure it to - 

i) start after my application has started up
ii) refresh everything after 2 hours?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970257#3970257

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970257



More information about the jboss-user mailing list