Examples of JndiEncInfo


Examples of org.apache.openejb.assembler.classic.JndiEncInfo

        String container = (String)di.getContainer().getContainerID();
        printRow("Deployed in", container, body);

        body.println("</table>");

        JndiEncInfo enc = bean.jndiEnc;

        body.println("<h2>JNDI Environment Details</h2><br>");
        body.println("<table width=\"100%\" border=\"1\">");
        body.println("<tr bgcolor=\"#5A5CB8\">");
        body.println("<td><font face=\"arial\" color=\"white\">JNDI Name</font></td>");
View Full Code Here

Examples of org.apache.openejb.assembler.classic.JndiEncInfo

                // Get the ejb-jar.xml object
                EnterpriseBean enterpriseBean = beanData.get(beanInfo.ejbName);

                // Build the JNDI info tree for the EJB
                JndiEncInfo jndi = jndiEncInfoBuilder.build(enterpriseBean, beanInfo.ejbName, ejbJar.moduleId);

                beanInfo.jndiEnc = jndi;


                jndiEncInfoBuilder.buildDependsOnRefs(ejbModule, enterpriseBean, beanInfo, ejbJar.moduleId);
View Full Code Here

Examples of org.apache.openejb.assembler.classic.JndiEncInfo

        // Create the JNDI info builder
        final JndiEncInfoBuilder jndiEncInfoBuilder = new JndiEncInfoBuilder(appInfo);
        if (appModule.getApplication() != null) {
            //TODO figure out how to prevent adding stuff to the module and comp contexts from the application
            //or maybe validate the xml so this won't happen.
            jndiEncInfoBuilder.build(appModule.getApplication(), appInfo.appId, null, appModule.getModuleUri(), new JndiEncInfo(), new JndiEncInfo());
        }

        final List<EnterpriseBeanInfo> beans = new ArrayList<EnterpriseBeanInfo>();
        // Build the JNDI tree for each ejb
        for (EjbModule ejbModule : appModule.getEjbModules()) {
View Full Code Here

Examples of org.apache.openejb.assembler.classic.JndiEncInfo

                    out(2, "remote         ", bean.remote);
                    out(2, "smallIcon      ", bean.smallIcon);
                    out(2, "transactionType", bean.transactionType);
                    out(2, "type           ", bean.type);

                    JndiEncInfo jndiEnc = bean.jndiEnc;
                    out(2, "jndiEnc        ", jndiEnc);
                    out(2, "envEntries     ", jndiEnc.envEntries.size());
                    for (ListIterator<EnvEntryInfo> iterator = jndiEnc.envEntries.listIterator(); iterator.hasNext();) {
                        EnvEntryInfo envEntry = iterator.next();
                        out(3, "--[" + iterator.previousIndex() + "]----------------------");
View Full Code Here

Examples of org.apache.openejb.assembler.classic.JndiEncInfo

            } catch (URISyntaxException e) {
                throw new OpenEJBException("Illegal moduleId " + moduleId, e);
            }
        }

        JndiEncInfo jndi = new JndiEncInfo();

        /* Build Environment entries *****************/
        jndi.envEntries.addAll(buildEnvEntryInfos(jndiConsumer));

        /* Build Resource References *****************/
 
View Full Code Here

Examples of org.apache.openejb.assembler.classic.JndiEncInfo

            Collection<EjbJarInfo> ejbJars = Collections.emptySet();
            if (earData != null) {
                ejbJars = earData.getEjbJars();
            }
            JndiEncInfoBuilder jndiEncInfoBuilder = new JndiEncInfoBuilder(ejbJars);
            JndiEncInfo jndiEncInfo;
            if (module.isStandAlone()) {
                jndiEncInfo = jndiEncInfoBuilder.build(consumer, "GeronimoEnc", null);
            } else {
                jndiEncInfo = jndiEncInfoBuilder.build(consumer, "GeronimoEnc", module.getTargetPath());
            }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.JndiEncInfo

            EjbModuleBuilder.EarData earData = EjbModuleBuilder.EarData.KEY.get(module.getRootEarContext().getGeneralData());

            AppInfo appInfo = earData != null ? earData.getAppInfo() : new AppInfo();

            JndiEncInfoBuilder jndiEncInfoBuilder = new JndiEncInfoBuilder(appInfo);
            JndiEncInfo moduleJndi = new JndiEncInfo();
            JndiEncInfo compJndi = new JndiEncInfo();

            String moduleId = module.getName();
            jndiEncInfoBuilder.build(specDD, "GeronimoEnc", moduleId, module.getModuleURI(), moduleJndi, compJndi);


            //No need to keep the persistence references, as they will be handled by Geronimo
            appInfo.globalJndiEnc.persistenceContextRefs.clear();
            appInfo.globalJndiEnc.persistenceUnitRefs.clear();
            appInfo.appJndiEnc.persistenceContextRefs.clear();
            appInfo.appJndiEnc.persistenceUnitRefs.clear();

            JndiEncInfo ejbEncInfo = new JndiEncInfo();
            ejbEncInfo.ejbReferences.addAll(appInfo.globalJndiEnc.ejbReferences);
            ejbEncInfo.ejbReferences.addAll(appInfo.appJndiEnc.ejbReferences);
            ejbEncInfo.ejbReferences.addAll(moduleJndi.ejbReferences);
            ejbEncInfo.ejbReferences.addAll(compJndi.ejbReferences);
            ejbEncInfo.ejbLocalReferences.addAll(appInfo.globalJndiEnc.ejbLocalReferences);
View Full Code Here

Examples of org.apache.openejb.assembler.classic.JndiEncInfo

            Collection<EjbJarInfo> ejbJars = Collections.emptySet();
            if (earData != null) {
                ejbJars = earData.getEjbJars();
            }
            JndiEncInfoBuilder jndiEncInfoBuilder = new JndiEncInfoBuilder(ejbJars);
            JndiEncInfo jndiEncInfo = jndiEncInfoBuilder.build(consumer, "GeronimoEnc");
            JndiEncBuilder jndiEncBuilder = new JndiEncBuilder(jndiEncInfo);
            map = jndiEncBuilder.buildMap();
        } catch (OpenEJBException e) {
            throw new DeploymentException(e);
        }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.JndiEncInfo

        String container = (String)di.getContainer().getContainerID();
        printRow("Deployed in", container, body);

        body.println("</table>");

        JndiEncInfo enc = bean.jndiEnc;

        body.println("<h2>JNDI Environment Details</h2><br>");
        body.println("<table width=\"100%\" border=\"1\">");
        body.println("<tr bgcolor=\"#5A5CB8\">");
        body.println("<td><font face=\"arial\" color=\"white\">JNDI Name</font></td>");
View Full Code Here

Examples of org.apache.openejb.assembler.classic.JndiEncInfo

                ejbRef.setMappedName(ejbLink.getDeployentId());
            }
        }

        // Build the JNDI info tree for the EJB
        JndiEncInfo jndi = jndiEncInfoBuilder.build(enterpriseBean, beanInfo.ejbName, moduleId);
        beanInfo.jndiEnc = jndi;
    }
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.