Package org.openejb.test.stateful

Examples of org.openejb.test.stateful.BasicStatefulHome


    public void testLookupStatefulBean() throws Exception {

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

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

        BasicStatefulObject object = home.create("Enc Bean");
        assertNotNull("The EJBObject is null", object);

    }
View Full Code Here

TOP

Related Classes of org.openejb.test.stateful.BasicStatefulHome

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.