Examples of BusinessLocalsMetaData


Examples of org.jboss.metadata.ejb.spec.BusinessLocalsMetaData

                     if(trace)
                        log.trace("mapEjbs, local: "+ifacePath+", ejbName: "+ejbName);
                  }
               }

               BusinessLocalsMetaData locals = sbean.getBusinessLocals();
               if(locals != null && locals.size() > 0)
               {
                  String defaultLocalBusinessJNDIName = sessionbeanJNDINameResolver.resolveLocalBusinessDefaultJNDIName(sbean);
                  cdmd.addJndiName(defaultLocalBusinessJNDIName);
                  for(String local : locals)
                  {
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.BusinessLocalsMetaData

                  if(sbean.getRemote() != null)
                  {
                     tmp.append(",remote=");
                     tmp.append(sbean.getRemote());
                  }
                  BusinessLocalsMetaData locals = sbean.getBusinessLocals();
                  if(locals != null)
                  {
                     tmp.append(",BusinessLocals: ");
                     tmp.append(locals);
                  }
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.BusinessLocalsMetaData

         if(mappedName != null)
            mappedNameMap.put(ejbPath, mappedName);
         if(bean instanceof JBossSessionBeanMetaData)
         {
            JBossSessionBeanMetaData sbean = (JBossSessionBeanMetaData) bean;
            BusinessLocalsMetaData locals = sbean.getBusinessLocals();
            if(locals != null)
            {
               for(String local : locals)
               {
                  // TODO: what is the correct key name
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.BusinessLocalsMetaData

                  if(sbean.getRemote() != null)
                  {
                     tmp.append(",remote=");
                     tmp.append(sbean.getRemote());
                  }
                  BusinessLocalsMetaData locals = sbean.getBusinessLocals();
                  if(locals != null)
                  {
                     tmp.append(",BusinessLocals: ");
                     tmp.append(locals);
                  }
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.BusinessLocalsMetaData

         // Bind a proxy per business interface
         //TODO This ugly block should be using polymorphism, but I'll allow it as the proxy mechanism
         // is going to be replaced entirely by EJB3 Proxy soon
         JBossSessionBeanMetaData smd = (JBossSessionBeanMetaData) container.getXml();
         BusinessRemotesMetaData remotes = smd.getBusinessRemotes();
         BusinessLocalsMetaData locals = smd.getBusinessLocals();
         Set<String> businessInterfaces = new HashSet<String>();
         boolean isLocal = this.isLocal();
         if (!isLocal)
         {
            if (remotes != null)
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.BusinessLocalsMetaData

         throw new IllegalArgumentException("Business interface cannot be null");
      }
     
      boolean isValidBusinessInterface = false;
      // first check business locals
      BusinessLocalsMetaData businessLocals = this.sessionBean31MetaData.getBusinessLocals();
      if (businessLocals != null)
      {
         isValidBusinessInterface = businessLocals.contains(businessInterface.getName());
      }
      // if it's not a valid business local, then check business remotes
      if (!isValidBusinessInterface)
      {
         BusinessRemotesMetaData businessRemotes = this.sessionBean31MetaData.getBusinessRemotes();
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.BusinessLocalsMetaData

      // Log
      String ejbName = smd.getEjbName();
      log.debug("Found Session Bean: " + ejbName);

      // Get Business Locals
      BusinessLocalsMetaData businessLocals = smd.getBusinessLocals();

      // Get Business Remotes
      BusinessRemotesMetaData businessRemotes = smd.getBusinessRemotes();

      // Get Local Home
      String localHome = StringUtils.adjustWhitespaceStringToNull(smd.getLocalHome());

      // Get Remote Home
      String remoteHome = StringUtils.adjustWhitespaceStringToNull(smd.getHome());

      // Determine if there are local/remote views
      boolean hasLocalView = (localHome != null || (businessLocals != null && businessLocals.size() > 0));
      boolean hasRemoteView = (remoteHome != null || (businessRemotes != null && businessRemotes.size() > 0));

      /*
       * Create and Register Proxy Factories
       */
 
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.BusinessLocalsMetaData

      // Log
      String ejbName = smd.getEjbName();
      log.debug("Unbinding JNDI References for Session Bean: " + ejbName);

      // Get Business Locals
      BusinessLocalsMetaData businessLocals = smd.getBusinessLocals();

      // Get Business Remotes
      BusinessRemotesMetaData businessRemotes = smd.getBusinessRemotes();

      // Get Local Home
      String localHome = StringUtils.adjustWhitespaceStringToNull(smd.getLocalHome());

      // Get Remote Home
      String remoteHome = StringUtils.adjustWhitespaceStringToNull(smd.getHome());

      // Determine if there are local/remote views
      boolean hasLocalView = (localHome != null || (businessLocals != null && businessLocals.size() > 0));
      boolean hasRemoteView = (remoteHome != null || (businessRemotes != null && businessRemotes.size() > 0));

      /*
       * Remove Proxy Factories
       */
 
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.BusinessLocalsMetaData

         throw new IllegalArgumentException("Business interface cannot be null");
      }
     
      boolean isValidBusinessInterface = false;
      // first check business locals
      BusinessLocalsMetaData businessLocals = this.sessionBean31MetaData.getBusinessLocals();
      if (businessLocals != null)
      {
         isValidBusinessInterface = businessLocals.contains(businessInterface.getName());
      }
      // if it's not a valid business local, then check business remotes
      if (!isValidBusinessInterface)
      {
         BusinessRemotesMetaData businessRemotes = this.sessionBean31MetaData.getBusinessRemotes();
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.BusinessLocalsMetaData

         metaData.setLocal(businessInterface.getName());
      }
      else
      {
         if(metaData.getBusinessLocals() == null)
            metaData.setBusinessLocals(new BusinessLocalsMetaData());
        
         metaData.getBusinessLocals().add(businessInterface.getName());
      }
   }
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.