Package org.jboss.metadata.ejb.spec

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


    * @param container The container being processed
    */
   private Collection<Binding> processLocalBusinessInterfaces(DeploymentUnit unit, JBossSessionBean31MetaData sessionBean,
         EJBContainer container)
   {
      BusinessLocalsMetaData businessLocals = sessionBean.getBusinessLocals();
      if (businessLocals == null || businessLocals.size() == 0)
      {
         return Collections.emptySet();
      }
     
      Set<Binding> bindings = new HashSet<Binding>();
View Full Code Here

      SessionBean31JNDINameResolver jndiNameResolver = JNDIPolicyBasedJNDINameResolverFactory.getJNDINameResolver(
            sessionBean, jndiPolicy);
     
      // Determine if there are local/remote views
      BusinessRemotesMetaData businessRemotes = sessionBean.getBusinessRemotes();
      BusinessLocalsMetaData businessLocals = sessionBean.getBusinessLocals();
     
      boolean hasLocalBusinessView = (businessLocals != null && businessLocals.size() > 0);
      boolean hasRemoteBusinessView = (businessRemotes != null && businessRemotes.size() > 0);
     
      // It's got a local business view, so resolve the default local business JNDI name
      // and add it to the list
      if (hasLocalBusinessView)
View Full Code Here

        sessionBeanDescription.setDeploymentDescriptorEnvironment(new DeploymentDescriptorEnvironment("java:comp/env/", sessionBean));

        // mapped-name
        sessionBeanDescription.setMappedName(sessionBean.getMappedName());
        // local business interface views
        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()) {
View Full Code Here

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

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

         List<Class<?>> remoteClasses = new ArrayList<Class<?>>();
         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

            }
         }
      }

      // Check in business locals
      BusinessLocalsMetaData businessLocals = smd.getBusinessLocals();
      if (businessLocals != null)
      {
         for (String businessLocal : businessLocals)
         {
            if (businessLocal.equals(interfaceName))
View Full Code Here

/* 57 */       metaData.setLocal(businessInterface.getName());
/*    */     }
/*    */     else
/*    */     {
/* 61 */       if (metaData.getBusinessLocals() == null) {
/* 62 */         metaData.setBusinessLocals(new BusinessLocalsMetaData());
/*    */       }
/* 64 */       metaData.getBusinessLocals().add(businessInterface.getName());
/*    */     }
/*    */   }
View Full Code Here

/*  779 */       List localClasses = new ArrayList();
/*  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();
/*      */
View Full Code Here

TOP

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

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.