Package org.jboss.as.test.clustering.ejb

Examples of org.jboss.as.test.clustering.ejb.LocalEJBDirectory


        String module = getRequiredParameter(req, MODULE);
        String bean = getRequiredParameter(req, BEAN);
        HttpSession session = req.getSession(true);
        Incrementor incrementor = (Incrementor) session.getAttribute(BEAN);
        if (incrementor == null) {
            try (LocalEJBDirectory directory = new LocalEJBDirectory(module)) {
                incrementor = directory.lookupStateful(bean, Incrementor.class);
            } catch (NamingException e) {
                throw new ServletException(e);
            }
        }
        try {
View Full Code Here


    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        HttpSession session = req.getSession(true);
        Stateful bean = (Stateful) session.getAttribute(BEAN);
        if (bean == null) {
            try (LocalEJBDirectory directory = new LocalEJBDirectory(StatefulBean.MODULE)) {
                bean = directory.lookupStateful(StatefulBean.class, Stateful.class);
            } catch (NamingException e) {
                throw new ServletException(e);
            }
        }
View Full Code Here

TOP

Related Classes of org.jboss.as.test.clustering.ejb.LocalEJBDirectory

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.