Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SessionContext in JSF Controller class

843842Oct 18 2006 — edited Feb 4 2008
Hello,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 27 2008
Added on Oct 18 2006
3 comments
1,010 views