-
1. Re: Define CacheLoader for different Regions
genman Mar 4, 2008 1:30 PM (in response to dandrolvorn)No, you're only allowed one cache loader per cache instance. You can of course create multiple cache instances in your application.
-
2. Re: Define CacheLoader for different Regions
dandrolvorn Mar 5, 2008 2:20 AM (in response to dandrolvorn)Thanks :)
-
3. Re: Define CacheLoader for different Regions
mircea.markus Mar 10, 2008 2:16 PM (in response to dandrolvorn)This shouldn't be too hard to implement, though. You can extend cache loader with a custom one, which would filter request and delegate to JDBCCacheLoader when needed.
-
4. Re: Define CacheLoader for different Regions
dandrolvorn Mar 10, 2008 6:25 PM (in response to dandrolvorn)Yeah ... i thought so, but it would be dirty (my oppinion).
Whatever i use a custom CacheLoader, that writes the Cache down into a Db4o Database, written by myself.
Now i use two cache instances, one with the CacheLoader. -
5. Re: Define CacheLoader for different Regions
manik Mar 14, 2008 9:12 AM (in response to dandrolvorn)If you have written a db4o Cache Loader and think it may be generally useful, do you feel like contributing it to JBoss Cache?
-
6. Re: Define CacheLoader for different Regions
dandrolvorn Mar 14, 2008 2:15 PM (in response to dandrolvorn)Why not? :)
Should i send you the three source files? Should i pay attention to something? -
7. Re: Define CacheLoader for different Regions
manik Mar 14, 2008 8:07 PM (in response to dandrolvorn)email me a patch (off trunk?) and I'll have a look. You should also create a unit test, along the lines of the BDBJECacheLoaderTest or JDBCCacheLoaderTest (just extend the base test class which does all the real work).