From: <glassfish_at_javadesktop.org>
Date: Mon, 14 Jan 2008 18:17:47 PST
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)]