Examples of BusinessRemotesMetaData


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

                        if(trace)
                           log.trace("mapEjbs, business-local: "+ifacePath+", ejbName: "+ejbName);
                     }
                  }
               }
               BusinessRemotesMetaData remotes = sbean.getBusinessRemotes();
               if(remotes != null && remotes.size() > 0)
               {
                  String defaultRemoteBusinessJNDIName = sessionbeanJNDINameResolver.resolveRemoteBusinessDefaultJNDIName(sbean);
                  cdmd.addJndiName(defaultRemoteBusinessJNDIName);
                  for(String remote : remotes)
                  {
View Full Code Here

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

                  if(locals != null)
                  {
                     tmp.append(",BusinessLocals: ");
                     tmp.append(locals);
                  }
                  BusinessRemotesMetaData remotes = sbean.getBusinessRemotes();
                  if(remotes != null)
                  {
                     tmp.append(",BusinessRemotes: ");
                     tmp.append(remotes);
                  }
View Full Code Here

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

               for(String local : locals)
               {
                  // TODO: what is the correct key name
               }
            }
            BusinessRemotesMetaData remotes = sbean.getBusinessRemotes();
            if(remotes != null)
            {
               for(String remote : remotes)
               {
                  // TODO: what is the correct key name                 
View Full Code Here

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

                  if(locals != null)
                  {
                     tmp.append(",BusinessLocals: ");
                     tmp.append(locals);
                  }
                  BusinessRemotesMetaData remotes = sbean.getBusinessRemotes();
                  if(remotes != null)
                  {
                     tmp.append(",BusinessRemotes: ");
                     tmp.append(remotes);
                  }
View Full Code Here

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

        
         // 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)
         {
View Full Code Here

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

         isValidBusinessInterface = businessLocals.contains(businessInterface.getName());
      }
      // if it's not a valid business local, then check business remotes
      if (!isValidBusinessInterface)
      {
         BusinessRemotesMetaData businessRemotes = this.sessionBean31MetaData.getBusinessRemotes();
         if (businessRemotes != null)
         {
            isValidBusinessInterface = businessRemotes.contains(businessInterface.getName());
         }
      }
      // if it's not a valid business local and neither a valid business remote, then
      // check for the no-interface view
      if (!isValidBusinessInterface)
View Full Code Here

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

      // 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.BusinessRemotesMetaData

      // 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.BusinessRemotesMetaData

      {
         RemoteBinding binding = container.getAnnotation(RemoteBinding.class);
         if (binding == null)
         {
            log.debug("no declared remote bindings for : " + container.getEjbName());
            BusinessRemotesMetaData businessRemotes = container.getMetaData().getBusinessRemotes();
            if (businessRemotes != null && businessRemotes.size() > 0)
            {
               log.debug("there is remote interfaces for " + container.getEjbName());
               String jndiName = container.getMetaData().determineResolvedJndiName(null);
               log.debug("default remote binding has jndiName of " + jndiName);
               String uri = ""; // use the default
View Full Code Here

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

         isValidBusinessInterface = businessLocals.contains(businessInterface.getName());
      }
      // if it's not a valid business local, then check business remotes
      if (!isValidBusinessInterface)
      {
         BusinessRemotesMetaData businessRemotes = this.sessionBean31MetaData.getBusinessRemotes();
         if (businessRemotes != null)
         {
            isValidBusinessInterface = businessRemotes.contains(businessInterface.getName());
         }
      }
      // if it's not a valid business local and neither a valid business remote, then
      // check for the no-interface view
      if (!isValidBusinessInterface)
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.