users@glassfish.java.net

Re: glassfish-embedded-shell.jar 3.0.1 deployment issue

From: <glassfish_at_javadesktop.org>
Date: Mon, 21 Jun 2010 15:32:33 PDT

This is how I start the embedded GlassFish server. It is through my main UnitTest class.


@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"/test-context.xml" ,"/jpa-dao-context.xml"})
@Stateless
public class AppTest extends TestCase {

    private static EJBContainer ejbContainer;

    /**
     * @throws Exception
     */
    @BeforeClass
    public static void setUpClass() throws Exception {
            ejbContainer = EJBContainer.createEJBContainer();
    }
[Message sent by forum member 'fericit_bostan']

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