Examples of helloBean


Examples of org.apache.geronimo.javaee6.jndi.ejb.helloBean

    throws ServletException, IOException {
        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
        try {
        String version = request.getParameter("version");
            helloBean h1 = (helloBean) new InitialContext().lookup("java:global/jndiEJB-test-"+version+"/helloBean");
            String s1 = h1.sayHello("global");
            helloBean h2 = (helloBean) new InitialContext().lookup("java:app/jndiEJB-test-"+version+"/helloBean");
            String s2 = h2.sayHello("app");
            helloBean h3 = (helloBean) new InitialContext().lookup("java:module/helloBean");
            String s3 = h3.sayHello("module");
            out.println("<html>");
            out.println("<head>");
            out.println("<title>Servlet globalJNDITest</title>")
            out.println("</head>");
            out.println("<body>");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.