I still have the same question, but I've implemented an alternative approach 
that seems to work just fine:


  | Set nodeKeySet = treeCache.get(fqn);
  | MyObject myObject = null;
  | 
  | if (nodeKeySet != null && nodeKeySet.size() > 0) {
  |   // I have my reasons for preferring a list to a Set
  |   List nodeKeyList = new ArrayList(nodeKeySet);
  |   String key = "";
  |   
  |   // Not precisely the termination condition...
  |   for (int i = 0; i < nodeKeyList.size(); i++) {
  |     key = (String)nodeKeyList.get(i);
  |     myObject = (MyObject)treeCache.get(fqn, key);
  |     ...
  |   }
  |   ...
  | }
  | 

Please let me know if others out there have similar logic or if I've done 
something totally bizarre or wrong.

TIA,
TTT

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

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


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to