We had the same issue, and what we did was cached a bunch of key matchups along with 
the object. So we would do something like this:

cache.put("/foo/byId", Id, Object)

Then also 

cache.put ("/keylookup", "/foo/byName," + Name, "/foo/byId," + Id)

That way when it comes lookup time you can first do a keylookup on "/foo/byName," + 
Name to see if it has another node (In this case "/foo/byId," + Id, then grab that one.

If you find a better solution please let me know.

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

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


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to