[jboss-user] [JBossCache] - Re: TreeCache CacheLoader Issue
bstansberry@jboss.com
do-not-reply at jboss.com
Wed May 9 09:51:22 EDT 2007
Here's your problem:
CacheHelper.getImportCache().get(nodename).put("importTracker", tracker);
Use:
CacheHelper.getImportCache().put(nodename, "importTracker", tracker);
Do the same anywhere else you have the same kind of thing going on.
The 1.x "public Node get(Fqn)" method was a bad idea and is conceptually being completely reworked in JBC 2.0. If you invoke directly on a JBC 1.x Node rather than through the cache, your call bypasses all the interceptors that do stuff like cache loader integration, replication, locking, etc.
To answer your question about having to call put() again if you modify your object, yes you do, unless you prepare your object for JBoss Dynamic AOP and use PojoCache.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044294#4044294
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044294
More information about the jboss-user
mailing list