Hey folks,

I've listened to the presentations (nice) and read through the docs but I can't 
really tell what the appropriate strategy is for using CacheLoaders with 
TreeCacheAOP. I can see the approach for using it with a regular TreeCache in 
the docs, but it doesn't seem to be clear how to extend this approach for 
TreeCacheAOP. 

Background
========
Here is what I'm wantign to experiment with. What I want to do is put regular 
objects in the cache, but I want to have a database backstore that has 
hibernate in front of it. So when a user request something from the cache, I 
want my CacheLoader to be called if something isn't in the cache. In my 
cacheloader I want to just use Hibernate to retrieve from persistence storage 
the file as defined in some custom mapping and then populate that in the cache 
- as well as have that object get replication to the other members of the group.


So after reading through all the docs this seems to be possible, but I can't 
find anything about CacheLoaders and how they interface with TreeCacheAOP. 
Everything in the comments in the doc talk about updating fields in a hashmap. 
If you folks have any examples of this anywhere that would be great or if there 
is some updated documentation that addresses this (I'm reading the TreeCacheAOP 
and TreeCache docs - but there is no publish date on them) I would greatly 
appreciate this.

TreeCache combined with JGroups looks like its going to be the glue that solves 
a LOT of my problems so I want to make sure I understand it before 'betting the 
farm' on it :)

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

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


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to