[jboss-user] [JBoss Cache: Core Edition] - cache preload in 2.1.1; does it work?

bord do-not-reply at jboss.com
Mon Jun 2 10:10:47 EDT 2008

hello all, (this is jbosscache 2.1.1GA)
I have the /whatever set in my XML CacheLoaderConfiguration, yet the preloading through cacheloader is not happening at time of cache.start. I have to explicitly follow the cache.start with a call of getCacheLoaderManager().preload() using the CacheSPI object to get preloading to work.
This is not satisfactory because the loading happens after my cacheStarted listener is invoked and the latter was designed to set a flag to distinguish preloads from later loads. (So i have to do further work-arounds with this flag setting.)

When i look at the jboss 2.1.1GA code I was appalled to see the CacheImpl.internalStart performs the preloadCache when the cacheLoaderManager object is non-null, yet the latter private member is never set in the class including the injectDependencies -- latter seems to set all the other data members.

So is anyone getting cache loader preloading to work in 2.1.x?
For most part my XML cacheloader configuration is the same as what i had working in 1.4.1 release (note i skipped 2.0).

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

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

More information about the jboss-user mailing list