[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

Hi Reto,

you can find the MBeans in the session context, where the key is the MBean name from faces-config.xml:

HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);
session.getAttribute ("myManagedBeanName")


But I am not sure whether all registered MBeans with session scope are created at e.g. session start.

Best regards

Wolfgang

Reto Huber schrieb:
Hi

I would like to loop through all registred MBeans (in session scope) in the current session. Is there an easy way to do this? I don't have the name of each Mbean to call them.

Regards,
Reto