Package org.apache.hello_world_soap_http

Examples of org.apache.hello_world_soap_http.GreeterHome


       
        InitialContext ctx = new InitialContext(p);
       
        Object obj = ctx.lookup("/Greeter");
       
        GreeterHome ejbHome =
            (GreeterHome)PortableRemoteObject.narrow(obj, GreeterHome.class);

        GreeterObject ejbObject = ejbHome.create();
   
        String response = ejbObject.greetMe("foo");

        assertEquals("Hello foo", response);
    }
View Full Code Here


       
        InitialContext ctx = new InitialContext(p);
       
        Object obj = ctx.lookup("/GreeterRemoteHome");
       
        GreeterHome ejbHome =
            (GreeterHome)PortableRemoteObject.narrow(obj, GreeterHome.class);

        GreeterObject ejbObject = ejbHome.create();
   
        String response = ejbObject.greetMe("foo");

        assertEquals("Hello foo", response);
    }
View Full Code Here

       
        InitialContext ctx = new InitialContext(p);
       
        Object obj = ctx.lookup("JAXRPCEJB/Greeter/org.apache.hello_world_soap_http.GreeterObject");
       
        GreeterHome ejbHome =
            (GreeterHome)PortableRemoteObject.narrow(obj, GreeterHome.class);

        GreeterObject ejbObject = ejbHome.create();
   
        String response = ejbObject.greetMe("foo");

        assertEquals("Hello foo", response);
    }
View Full Code Here

       
        InitialContext ctx = new InitialContext(p);
       
        Object obj = ctx.lookup("/GreeterRemoteHome");
       
        GreeterHome ejbHome =
            (GreeterHome)PortableRemoteObject.narrow(obj, GreeterHome.class);

        GreeterObject ejbObject = ejbHome.create();
   
        String response = ejbObject.greetMe("foo");

        assertEquals("Hello foo", response);
    }
View Full Code Here

       
        InitialContext ctx = new InitialContext(p);
       
        Object obj = ctx.lookup("/Greeter");
       
        GreeterHome ejbHome =
            (GreeterHome)PortableRemoteObject.narrow(obj, GreeterHome.class);

        GreeterObject ejbObject = ejbHome.create();
   
        String response = ejbObject.greetMe("foo");

        assertEquals("Hello foo", response);
    }
View Full Code Here

TOP

Related Classes of org.apache.hello_world_soap_http.GreeterHome

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.