users@glassfish.java.net

Re: SessionContext is null?

From: <glassfish_at_javadesktop.org>
Date: Mon, 12 Nov 2007 11:06:34 PST

How are you acquiring the session bean reference? Make sure you are not doing a new() on the session bean class. If it's a JSP page you'll need to lookup the session bean reference from the web application's component environmnent (java:comp/env). You can follow the instructions from our EJB FAQ :

https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#POJOLocalEJB
[Message sent by forum member 'ksak' (ksak)]

http://forums.java.net/jive/thread.jspa?messageID=245089