[jboss-dev-forums] [Design of JBossCache] - Re: PojoCache physical POJO field mapping and region
bstansberry@jboss.com
do-not-reply at jboss.com
Fri Oct 6 12:31:02 EDT 2006
"ben.wang at jboss.com" wrote : "bstansberry at jboss.com" wrote : It would be good if when I call getChildrenNames() the resulting set doesn't include _JBossInternal_. Having that exposed to user code as a child is the only downside I see to what you propose.
|
| I know you have told me before but what exactly is the usage for getChildrenNames() again? I mean can PojoCache provide that kind of functionality such that you don't need to use the underlying cache API?
The specific use case it the root of the region is the root of the webapp; the children are the sessions. A call to getChildrenNames() provides the ids of all the sessions in the cache.
That's the specific case, but I think it's a general problem. Node higher in the tree defines some category; children represent specific instances. I think a general solution of some sort (e.g. like Elias mentions) is appropriate.
As a sophisticated user I can of course get around this by removing _JBossInternal_ from the set. But that's a hack.
You could provide some kind of PojoCache function to replace the getChildrenNames() call, but the usage here is really a plain cache usage.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976637#3976637
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976637
More information about the jboss-dev-forums
mailing list