[JBoss-dev] [JBossCache] - Re: YACL (Yet Another CacheLoader) question

2004-12-01 Thread nine_mirrors
[EMAIL PROTECTED] wrote : This may be a bug in 1.1, but it is definitely calling the CacheLoader in 1.2: |public Node get(Fqn fqn) throws CacheException { | | MethodCall m=new MethodCall(getNodeMethodLocal, new Object[]{fqn}); | | return (Node)invokeMethod(m); | |

[JBoss-dev] [JBossCache] - Re: YACL (Yet Another CacheLoader) question

2004-12-01 Thread [EMAIL PROTECTED]
nine_mirrors wrote : | I've checked out jboss-head and rebuilt it. Calling the cache loader is now done from the interceptor. | However, is calling TreeCache.get(Fqn) supposed to result in a call to CacheLoader.get(Fqn) if the node doesn't exist or the map empty? | Yes, because the

[JBoss-dev] [JBossCache] - Re: YACL (Yet Another CacheLoader) question

2004-11-30 Thread [EMAIL PROTECTED]
This may be a bug in 1.1, but it is definitely calling the CacheLoader in 1.2: public Node get(Fqn fqn) throws CacheException { | MethodCall m=new MethodCall(getNodeMethodLocal, new Object[]{fqn}); | return (Node)invokeMethod(m); |} The invokeMethod() passes the call

[JBoss-dev] [JBossCache] - Re: YACL (Yet Another CacheLoader) question

2004-11-30 Thread [EMAIL PROTECTED]
BTW: once you have a Node, note that if you update it, the method calls are not intercepted, therefore all the properties provided by the interceptors (locking, cacheloading, replication etc) are not applied ! Bela View the original post :

[JBoss-dev] [JBossCache] - Re: YACL (Yet Another CacheLoader) question

2004-11-30 Thread [EMAIL PROTECTED]
What you can do as a workaround is: cache.getKeys(/a/b/c); | Node n=cache.get(/a/b/c); then the node n will have read its attributes from the CacheLoader. Bela View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3856834#3856834 Reply to the post :

[JBoss-dev] [JBossCache] - Re: YACL (Yet Another CacheLoader) question

2004-11-30 Thread nine_mirrors
[EMAIL PROTECTED] wrote : This may be a bug in 1.1, but it is definitely calling the CacheLoader in 1.2: |public Node get(Fqn fqn) throws CacheException { | | MethodCall m=new MethodCall(getNodeMethodLocal, new Object[]{fqn}); | | return (Node)invokeMethod(m); | |

[JBoss-dev] [JBossCache] - Re: YACL (Yet Another CacheLoader) question

2004-11-30 Thread [EMAIL PROTECTED]
2 solutions if you can't wait: #1 Change the code in 1.1.1 #2 Check out 1.2 from CVS (1 bug remains to be fixed though with non-shared CacheLoaders): cd jboss-head/build build.sh cd ../cache/output/lib cp jboss-cache.jar JBOSS_HOME/server//lib View the original post :

[JBoss-dev] [JBossCache] - Re: YACL (Yet Another CacheLoader) question

2004-11-29 Thread nine_mirrors
Is there a specific reason why my posting was truncated? Is there something wrong with the forum code? /Erik nine_mirrors wrote : Howdy all, | | I'm (still) implementing a cache loader and trying to get a feel for how it works. | I'm wondering about TreeCache.get(Fqn). It does not seem

[JBoss-dev] [JBossCache] - Re: YACL (Yet Another CacheLoader) question

2004-11-29 Thread nine_mirrors
Since my original posting was truncated, here comes the rest: it executes the n.createChild(...) but never calls the CacheLoader to get the data. Do I misunderstand what the TreeCache.get(Fqn) method is supposed to do (ie fetch the data from 2nd store if not available in the local cache)? I'm