Search in sources :

Example 11 with JndiConsumer

use of org.apache.openejb.jee.JndiConsumer in project tomee by apache.

the class LinkBuiltInTypes method deploy.

@Override
public AppModule deploy(final AppModule appModule) throws OpenEJBException {
    for (final ClientModule module : appModule.getClientModules()) {
        final JndiConsumer consumer = module.getApplicationClient();
        if (consumer == null) {
            continue;
        }
        link(consumer);
    }
    for (final WebModule module : appModule.getWebModules()) {
        final JndiConsumer consumer = module.getWebApp();
        if (consumer == null) {
            continue;
        }
        link(consumer);
    }
    for (final EjbModule module : appModule.getEjbModules()) {
        final EjbJar ejbJar = module.getEjbJar();
        if (ejbJar == null) {
            continue;
        }
        for (final EnterpriseBean consumer : ejbJar.getEnterpriseBeans()) {
            link(consumer);
        }
    }
    return appModule;
}
Also used : EnterpriseBean(org.apache.openejb.jee.EnterpriseBean) JndiConsumer(org.apache.openejb.jee.JndiConsumer) EjbJar(org.apache.openejb.jee.EjbJar)

Aggregations

JndiConsumer (org.apache.openejb.jee.JndiConsumer)11 EjbJar (org.apache.openejb.jee.EjbJar)5 EnterpriseBean (org.apache.openejb.jee.EnterpriseBean)5 KeyedCollection (org.apache.openejb.jee.KeyedCollection)3 ArrayList (java.util.ArrayList)2 URI (java.net.URI)1 HashMap (java.util.HashMap)1 Properties (java.util.Properties)1 DataSource (javax.sql.DataSource)1 ResourceInfo (org.apache.openejb.assembler.classic.ResourceInfo)1 Resource (org.apache.openejb.config.sys.Resource)1 DataSource (org.apache.openejb.jee.DataSource)1 EnvEntry (org.apache.openejb.jee.EnvEntry)1 JMSConnectionFactory (org.apache.openejb.jee.JMSConnectionFactory)1 JMSDestination (org.apache.openejb.jee.JMSDestination)1 ResourceRef (org.apache.openejb.jee.ResourceRef)1 SessionBean (org.apache.openejb.jee.SessionBean)1 PersistenceUnit (org.apache.openejb.jee.jpa.unit.PersistenceUnit)1 SuperProperties (org.apache.openejb.util.SuperProperties)1