Once I put domain.xml in org.glassfish.embed on the test classpath (src/test/resources/org/glassfish/embed), my setUpClass() became this and all my beans loaded as expected.
@BeforeClass
public static void setUpClass()
throws Exception {
sEJBContainer = EJBContainer.createEJBContainer();
}
On Apr 7, 2010, at 13:45, glassfish_at_javadesktop.org wrote:
> Turns out both articles are wrong; you MUST make sure to configure EJBContainer using its EJBContainer.MODULES key, or it will have absolutely no idea where to look to find your EJBs.
> [Message sent by forum member 'ljnelson']
>
> http://forums.java.net/jive/thread.jspa?messageID=395763
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>