Hi,
The facesContext is available only on a http request mapped to FacesServlet.
Outside of such request you can create a FacesContext yourself if you
really need it
(see NonFacesRequestServlet) but you need a ServletContext at least.
Regards,
Volker
2009/3/3 Bravo Villegas Salvador Francisco <[email protected]>:
> Hi All,
>
>
>
> I have the following class:
>
> “public class JMSListener implements MessageListener {“
>
>
>
> And on the onMessage() method I put this:
>
> “Map map =
> FacesContext.getCurrentInstance().getExternalContext().getApplicationMap();”
>
>
>
> But it cannot access the current instance of Faces, any idea why I can’t
> access???
>
>
>
> Regards
>
> SB
--
inexso - information exchange solutions GmbH
Bismarckstraße 13 | 26122 Oldenburg
Tel.: +49 441 4082 356 |
FAX: +49 441 4082 355 | www.inexso.de