Search in sources :

Example 1 with JndiNameInfo

use of org.apache.openejb.assembler.classic.JndiNameInfo in project tomee by apache.

the class EjbJarInfoBuilder method initJndiNames.

private void initJndiNames(final Map<String, EjbDeployment> ejbds, final EnterpriseBeanInfo info) {
    final EjbDeployment deployment = ejbds.get(info.ejbName);
    if (deployment != null) {
        for (final Jndi jndi : deployment.getJndi()) {
            final JndiNameInfo jndiNameInfo = new JndiNameInfo();
            jndiNameInfo.intrface = jndi.getInterface();
            jndiNameInfo.name = jndi.getName();
            info.jndiNamess.add(jndiNameInfo);
        }
    }
}
Also used : JndiNameInfo(org.apache.openejb.assembler.classic.JndiNameInfo) EjbDeployment(org.apache.openejb.jee.oejb3.EjbDeployment) Jndi(org.apache.openejb.jee.oejb3.Jndi)

Aggregations

JndiNameInfo (org.apache.openejb.assembler.classic.JndiNameInfo)1 EjbDeployment (org.apache.openejb.jee.oejb3.EjbDeployment)1 Jndi (org.apache.openejb.jee.oejb3.Jndi)1