[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.webtools.jsf] Re: Loop through the Mbeans in Session Scope
|
Thank you for your hints. I'm looping now through my session objects and
search for this one I need.
Map sessionMap = context.getExternalContext().getSessionMap();
Iterator it = sessionMap.entrySet().iterator();
while (it.hasNext()) {
Object obj = ((Entry)it.next()).getValue();
if(obj instanceof AesWebBoBean) {
// do something
}
}
>> But I am not sure whether all registered MBeans with session scope are
>> created
>> at e.g. session start.
>
> None of them are created at session start. Managed beans are created when
> they
> are first referenced in an expression.
that's correct.
kindest regards,
Reto