Examples of EjbRef


Examples of org.apache.openejb.jee.EjbRef

    }

    private void processReferencesEnvEntries(EnterpriseBean bean, ClassLoader classLoader, EjbInfo ejbInfo) {
        // Process Remote EJB References
        for (Map.Entry<String, EjbRef> entry : bean.getEjbRefMap().entrySet()) {
            EjbRef ejbRef = entry.getValue();
            if(ejbRef.getHome() != null) {
                // References to only EJB3 beans need to be considered.
                // Skip the current on as it is not a reference to an EJB3 bean.
                continue;
            }
            if (ejbRef.getRefType().compareTo(EjbReference.Type.REMOTE) != 0) {
                // Only Remote EJB references need to be considered.
                // Skip the current one as it is not a remote reference.
                continue;
            }
            //FIXME: ejbRef.getEjbRefType() is null sometimes.  Need a different way to figure the type.
            if(ejbRef.getEjbRefType() != null && ejbRef.getEjbRefType().compareTo(EjbRefType.SESSION) != 0) {
                // Only references to Session beans need to be considered.
                // Skip the current one as it is not a Session bean.
                continue;
            }

            try {
                ejbInfo.ejbReferences.put(ejbRef.getEjbRefName(), createEjbReferenceInfo(ejbRef, classLoader));
            } catch (ClassNotFoundException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }
View Full Code Here

Examples of org.cafesip.jiplet.config.jip.EJBRef

            }

            i = config.getEjbRef().iterator();
            while (i.hasNext() == true)
            {
                EJBRef ejb = (EJBRef) i.next();
                String jndi_name = ejb.getEjbRefName();
                if (vdh != null)
                {
                    jndi_name = vdh.getEjbRefJndiName(jndi_name);
                }

                NamingUtil.rebind(sub, ejb.getEjbRefName(), new LinkRef(
                        jndi_name));
            }

            i = config.getEjbLocalRef().iterator();
            while (i.hasNext() == true)
            {
                EJBLocalRef ejb = (EJBLocalRef) i.next();
                String jndi_name = ejb.getEjbRefName();
                if (vdh != null)
                {
                    jndi_name = vdh.getEjbLocalRefJndiName(jndi_name);
                }
                NamingUtil.rebind(sub, ejb.getEjbRefName(), new LinkRef(
                        jndi_name));
            }
        }
        finally
        {
View Full Code Here

Examples of org.cafesip.jiplet.config.jip.EJBRef

            }

            i = config.getEjbRef().iterator();
            while (i.hasNext() == true)
            {
                EJBRef ejb = (EJBRef) i.next();
                NamingUtil.unbind(sub, ejb.getEjbRefName());
            }

            i = config.getEjbLocalRef().iterator();
            while (i.hasNext() == true)
            {
                EJBLocalRef ejb = (EJBLocalRef) i.next();
                NamingUtil.unbind(sub, ejb.getEjbRefName());
            }

            try
            {
                env_ctx.destroySubcontext("env");
View Full Code Here

Examples of org.cafesip.jiplet.jboss.config.jip.EJBRef

        }

        Iterator i = jbossJip.getEjbRef().iterator();
        while (i.hasNext() == true)
        {
            EJBRef ejb = (EJBRef) i.next();
            if (ejb.getEjbRefName().equals(ejbRefName) == true)
            {
                String jndi = ejb.getJndiName();
                if (jndi == null)
                {
                    return ejbRefName;
                }
View Full Code Here

Examples of org.codehaus.cargo.module.webapp.EjbRef

    private void addEjbRefs(WebXml theWebXml)
    {
        Iterator i = ejbRefs.iterator();
        while (i.hasNext())
        {
            EjbRef ref = (EjbRef) i.next();
            theWebXml.addEjbRef(ref);
        }
    }
View Full Code Here

Examples of org.jboss.metamodel.descriptor.EjbRef

      {
         EJBReferencesMetaData erefs = refs.getEjbReferences();
         if(erefs != null)
         for(EJBReferenceMetaData ref : erefs)
         {
            EjbRef eref = new EjbRef();
            eref.setEjbLink(ref.getLink());
            eref.setEjbRefName(ref.getEjbRefName());
            eref.setEjbRefType(ref.getType());
            eref.setHome(ref.getHome());
            eref.setRemote(ref.getRemote());
            eref.setIgnoreDependency(ref.isDependencyIgnored());
            eref.setMappedName(ref.getMappedName());
            eref.setInjectionTarget(getInjectionTarget(ref.getInjectionTargets()));
            ejbRefs.put(ref.getEjbRefName(), eref);
         }
         log.info("Converted "+ejbRefs.size()+" refs: "+ejbRefs.keySet());
         convertedEjbRefs = true;
      }
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.