Package org.jboss.as.test.integration.security.common.ejb3

Examples of org.jboss.as.test.integration.security.common.ejb3.Hello.sayHello()


        final PrintWriter writer = resp.getWriter();
        final String jndiName = req.getParameter(PARAM_JNDI_NAME);
        try {
            final Context ctx = new InitialContext();
            final Hello ejbObject = (Hello) ctx.lookup(jndiName);
            final String msg = ejbObject.sayHello();
            LOGGER.info(msg);
            writer.append(msg);
            ctx.close();
        } catch (NamingException ex) {
            LOGGER.warn("Unable to get EJB.", ex);
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.