users@glassfish.java.net

Re: EnitiyManager won't inject

From: Garth Keesler <garthk_at_gdcjk.com>
Date: Tue, 15 Jan 2008 04:18:54 -0600

glassfish_at_javadesktop.org wrote:
> Yes, you are right - NPE happens because the EM is not being injected. You need to replace creating a new instance of a SLSB with the proper lookup call, which will depend on the way you'll run your test - as an application client or a plain Java client. See https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#AppClientDef for the how-tos and links to get more details.
>
> Regards,
> -marina
> [Message sent by forum member 'mvatkina' (mvatkina)]
>
> http://forums.java.net/jive/thread.jspa?messageID=253895
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
> .
>
>
That's what I was looking for. I searched the FAQ but apparently not
well enough. :-)

Thanx much for the reply,
Garth