SessionContext in JSF Controller class
843842Oct 18 2006 — edited Feb 4 2008Hello,
I want to access a EJB session bean from a JSF managed bean. I wrote this code for the JSF managed bean:
public class MyController {
@Resource
private SessionContext sc;
Unfortunately, the SessionContext is always null, when I deploy this to Glassfish. How should this be done?
Many thanks in advance,
Ulrich