"ben.wang(a)jboss.com" wrote : "bstansberry(a)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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...