users@glassfish.java.net

Re: Dependency Injection is not working

From: <glassfish_at_javadesktop.org>
Date: Mon, 01 Mar 2010 06:13:32 PST

For the invocation in which the session context field is null, how is the caller acquiring the CalcSessionBean EJB reference? A common error is when the caller uses new() to instantiate the bean class directly, in which case the EJB container is not involved and no injection occurs.
[Message sent by forum member 'ksak' (kenneth.saks_at_sun.com)]

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