Package org.jboss.metadata.ejb.spec

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


    * @param container The container being processed
    */
   private void processRemoteBusinessInterfaces(DeploymentUnit unit, JBossSessionBean31MetaData sessionBean,
         EJBContainer container)
   {
      BusinessRemotesMetaData businessRemotes = sessionBean.getBusinessRemotes();
      if (businessRemotes == null || businessRemotes.size() == 0)
      {
         return;
      }

      String defaultInvokerLocatorURL = ProxyRemotingUtils.getDefaultClientBinding();
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 hasLocalBusinessView = (businessLocals != null && businessLocals.size() > 0);
      boolean hasRemoteBusinessView = (businessRemotes != null && businessRemotes.size() > 0);
      boolean hasLocalView = (localHome != null || hasLocalBusinessView);
      boolean hasRemoteView = (remoteHome != null || hasRemoteBusinessView);

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

            // Not bound together
            return false;
         }

         // If no business remotes defined
         BusinessRemotesMetaData businessRemotes = smd.getBusinessRemotes();
         if (businessRemotes == null || businessRemotes.size() == 0)
         {
            // Not bound together
            return false;
         }
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

   {
      Collection<String> interfaces = new ArrayList<String>();

      // Add all eligible bean interfaces
      BusinessLocalsMetaData businessLocals = smd.getBusinessLocals();
      BusinessRemotesMetaData businessRemotes = smd.getBusinessRemotes();
      String home = smd.getHome();
      String localHome = smd.getLocalHome();
      if (businessLocals != null)
      {
         interfaces.addAll(businessLocals);
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

   {
      Collection<String> interfaces = new ArrayList<String>();

      // Add all eligible bean interfaces
      BusinessLocalsMetaData businessLocals = smd.getBusinessLocals();
      BusinessRemotesMetaData businessRemotes = smd.getBusinessRemotes();
      String home = smd.getHome();
      String localHome = smd.getLocalHome();
      if (businessLocals != null)
      {
         interfaces.addAll(businessLocals);
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

      DefaultJndiBindingPolicy jndiPolicy = DefaultJNDIBindingPolicyFactory.getDefaultJNDIBindingPolicy();
      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

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.