Package org.jboss.metadata.ejb.spec

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


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

         List<String> localClassNames = new ArrayList<String>();
         List<String> remoteClassNames = new ArrayList<String>();
        
         // Obtain business interfaces (local and remote)
         BusinessLocalsMetaData businessLocals = enterpriseBean.getBusinessLocals();
         BusinessRemotesMetaData businessRemotes = enterpriseBean.getBusinessRemotes();
        
         // Obtain local and remote interfaces
         String local = enterpriseBean.getLocal();
         String remote = enterpriseBean.getRemote();
        
View Full Code Here

     
      // Get Metadata
      JBossSessionBeanMetaData smd = this.getMetaData();
     
      // Check in business remotes
      BusinessRemotesMetaData businessRemotes = smd.getBusinessRemotes();
      if (businessRemotes != null)
      {
         for (String businessRemote : businessRemotes)
         {
            if (businessRemote.equals(interfaceName))
View Full Code Here

/* 57 */       metaData.setRemote(businessInterface.getName());
/*    */     }
/*    */     else
/*    */     {
/* 61 */       if (metaData.getBusinessRemotes() == null) {
/* 62 */         metaData.setBusinessRemotes(new BusinessRemotesMetaData());
/*    */       }
/* 64 */       metaData.getBusinessRemotes().add(businessInterface.getName());
/*    */     }
/*    */   }
View Full Code Here

/*  780 */       List remoteClasses = new ArrayList();
/*  781 */       List localClassNames = new ArrayList();
/*  782 */       List remoteClassNames = new ArrayList();
/*      */
/*  785 */       BusinessLocalsMetaData businessLocals = enterpriseBean.getBusinessLocals();
/*  786 */       BusinessRemotesMetaData businessRemotes = enterpriseBean.getBusinessRemotes();
/*      */
/*  789 */       String local = enterpriseBean.getLocal();
/*  790 */       String remote = enterpriseBean.getRemote();
/*      */
/*  793 */       if (businessLocals != null)
View Full Code Here

/* 144 */         if (locals != null)
/*     */         {
/* 146 */           for (Iterator i$ = locals.iterator(); i$.hasNext(); local = (String)i$.next());
/*     */         }
/*     */
/* 151 */         BusinessRemotesMetaData remotes = sbean.getBusinessRemotes();
/* 152 */         if (remotes != null)
/*     */         {
/* 154 */           for (Iterator i$ = remotes.iterator(); i$.hasNext(); remote = (String)i$.next());
/*     */         }
/*     */       }
/*     */     }
/*     */     String remote;
/*     */   }
View Full Code Here

/* 622 */             if (locals != null)
/*     */             {
/* 624 */               tmp.append(",BusinessLocals: ");
/* 625 */               tmp.append(locals);
/*     */             }
/* 627 */             BusinessRemotesMetaData remotes = sbean.getBusinessRemotes();
/* 628 */             if (remotes != null)
/*     */             {
/* 630 */               tmp.append(",BusinessRemotes: ");
/* 631 */               tmp.append(remotes);
/*     */             }
View Full Code Here

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

        BusinessLocalsMetaData businessLocals = sessionBean.getBusinessLocals();
        if (businessLocals != null && !businessLocals.isEmpty()) {
            sessionBeanDescription.addLocalBusinessInterfaceViews(businessLocals);
        }
        // remote business interface views
        BusinessRemotesMetaData businessRemotes = sessionBean.getBusinessRemotes();
        if (businessRemotes != null && !businessRemotes.isEmpty()) {
            sessionBeanDescription.addRemoteBusinessInterfaceViews(businessRemotes);
        }
        // tx management type
        if (sessionBean.getTransactionType() != null) {
            sessionBeanDescription.setTransactionManagementType(sessionBean.getTransactionType());
View Full Code Here

TOP

Related Classes of org.jboss.metadata.ejb.spec.BusinessRemotesMetaData

Copyright © 2018 www.massapicom. 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.