"gwwallace" wrote : A piece of further information. | | We have a hierarchy /a/b which is empty to start with. | | At cache startup we start try to load in /a/b/c, /a/b/d, /a/b/e etc | | If we call cache.exists(Fqn) the cache loader gets the exists(Fqn) call and returns true. |
No, this is incorrect ! The exists() method does not acquire any locks, and it does not call the CacheLoader's exists() methods. anonymous wrote : | If we then call cache.get(Fqn) the cache loader never gets the equivalent get call. however if we call | cache.get(Fqn, Object) the cacheloader will get the call and everything works fine. | I just checked the code: both get() calls should call the equivalent exists() on the CacheLoader, then the get() on the CacheLoader. Compare your CacheLoader to FileCacheLoader to see what FileCacheLoader is doing differently. You may also want to create a unit test a la FileCacheLoaderTest, which runs all CacheLoader unit tests against your implementation. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880563#3880563 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880563 ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
