Package org.openejb.test.stateless

Examples of org.openejb.test.stateless.BasicStatelessHome


    public void testLookupStatelessBean() throws Exception {

        InitialContext ctx = new InitialContext();
        assertNotNull("The InitialContext is null", ctx);

        BasicStatelessHome home = (BasicStatelessHome) ctx.lookup("java:comp/env/ejb/stateless");
        assertNotNull("The EJBHome looked up is null", home);

        BasicStatelessObject object = home.create();
        assertNotNull("The EJBObject is null", object);

    }
View Full Code Here

TOP

Related Classes of org.openejb.test.stateless.BasicStatelessHome

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.