-
1. Re: How to load objects through CacheLoader for TreeCacheAop
ben.wang Nov 15, 2005 12:55 AM (in response to satishyl)CacheLoaderAop interface is not used right now. As for TreeCacheAop and CacheLoader, I have written some unit tests under functional/org/jboss/cache/aop/loader. You can check it out. On first thought, I'd assume if you are using CacheLoader interface, it should work. But I can be wrong.
-Ben -
2. Re: How to load objects through CacheLoader for TreeCacheAop
satishyl Nov 15, 2005 9:33 AM (in response to satishyl)Hi Ben,
Thanks for the reply. I looked at the test case, but what I see there is some objects put in to the cache to do a particular test and then retrieve them. What I am looking for is a way to load these objects lazily as needed based on the CacheLoader interface methods exists(Fqn) and get(Fqn). None of the AOP examples provided with the distribution cover this. My difficulty is to figure out how to load the objects dynamically when needed and attach them to the Aop Cache. Any ideas?
Thanks,
Satish -
3. Re: How to load objects through CacheLoader for TreeCacheAop
ben.wang Nov 17, 2005 12:29 AM (in response to satishyl)Ah, ic. Yes, lzay loading is on todo plate. There is a Jira issue (JBCACHE-13) with it as well. I haven't had time to think about it yet. But if you have any suggestion, do let me know. :-)
-Ben