I have implemented a CacheLoader and I noticed that the exists(Fqn) method is 
being called in respose to TreeCache.get() with the same Fqn multiple times. 
This is happening as it walks the Fqn down to my node. This seems incorrect - I 
would expect the Fqn passed to exists() to start at the root and gradually 
extend in each call.

Is this a bug? If yes, then the erroneous code below is from 
CacheLoaderInteceptor.loadNode(Fqn) in 1.2 (AS 4.0.1sp1). I think the 
loader.exists(fqn) call should be load.exists(tmp_fqn).


  | if(loader.exists(fqn)) {
  |   child_node=n.createChild(child_name, tmp_fqn, n, TreeCache.UNINITIALIZED, 
null);
  |   cache.notifyNodeLoaded(tmp_fqn);
  | }
  | 

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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to