Package org.jboss.metadata.ejb.jboss

Examples of org.jboss.metadata.ejb.jboss.RemoteBindingMetaData


      if (hasRemoteView)
      {
         // Obtain RemoteBinding URL
         List<RemoteBindingMetaData> bindings = smd.getRemoteBindings();
         assert bindings != null && bindings.size() > 0 : "Remote Bindings are required and none are present";
         RemoteBindingMetaData remoteBinding = bindings.get(0);
         String url = remoteBinding.getClientBindUrl();
         //TODO
         // EJBTHREE-1419 Provide more intelligent mechanism for defaults when clientBindUrl is unspecified
         if (url == null || url.trim().equals(""))
         {
            url = JndiSessionRegistrarBase.DEFAULT_CLIENT_BINDING;
            remoteBinding.setClientBindUrl(url);
         }
         // Create and register a remote proxy factory
         String remoteProxyFactoryKey = this.getProxyFactoryRegistryKey(smd, false);
         SessionProxyFactory factory = this.createRemoteProxyFactory(remoteProxyFactoryKey, containerName,
               containerGuid, smd, cl, url, advisor);
View Full Code Here


   protected RefAddr createRemotingRefAddr(JBossSessionBeanMetaData smd)
   {
      // Obtain RemoteBinding
      List<RemoteBindingMetaData> bindings = smd.getRemoteBindings();
      assert bindings != null && bindings.size() > 0 : "Remote Bindings are required and none are present";
      RemoteBindingMetaData remoteBinding = smd.getRemoteBindings().get(0);

      // Create RefAddr
      String url = remoteBinding.getClientBindUrl();
      assert url != null && url.trim().toString().length() != 0 : InvokerLocator.class.getSimpleName()
            + " URL must be defined, and is unspecified";
      RefAddr refAddr = new StringRefAddr(ProxyFactoryReferenceAddressTypes.REF_ADDR_TYPE_INVOKER_LOCATOR_URL, url);

      // Return
View Full Code Here

      {
         // Obtain RemoteBinding URL
         List<RemoteBindingMetaData> bindings = smd.getRemoteBindings();

         // Get Client Bind URL
         RemoteBindingMetaData remoteBinding = null;
         String url = null;
         try
         {
            // If bindings are specified
            if (bindings != null)
            {
               remoteBinding = bindings.get(0);
               url = remoteBinding.getClientBindUrl();
            }
         }
         // The bindings were empty
         catch (IndexOutOfBoundsException ioobe)
         {
            // Create a new empty remote binding and add to the metadata
            remoteBinding = new RemoteBindingMetaData();
            smd.getRemoteBindings().add(remoteBinding);
         }

         // If no explicit Client Bind URL is specified
         if (url == null || url.trim().equals(""))
         {
            // Use the binding on the EJB3 Remoting Connector
            url = ProxyRemotingUtils.getDefaultClientBinding();
            remoteBinding.setClientBindUrl(url);
         }
         // Create and register a remote proxy factory
         String remoteProxyFactoryKey = this.getProxyFactoryRegistryKey(smd, false);
         SessionProxyFactory factory = this.createRemoteProxyFactory(remoteProxyFactoryKey, containerName,
               containerGuid, smd, cl, url, advisor);
View Full Code Here

   protected RefAddr createRemotingRefAddr(JBossSessionBeanMetaData smd)
   {
      // Obtain RemoteBinding
      List<RemoteBindingMetaData> bindings = smd.getRemoteBindings();
      assert bindings != null && bindings.size() > 0 : "Remote Bindings are required and none are present";
      RemoteBindingMetaData remoteBinding = smd.getRemoteBindings().get(0);

      // Create RefAddr for InvokerLocator
      String url = remoteBinding.getClientBindUrl();
      assert url != null && url.trim().toString().length() != 0 : InvokerLocator.class.getSimpleName()
            + " URL must be defined, and is unspecified";
      RefAddr refAddr = new StringRefAddr(ProxyFactoryReferenceAddressTypes.REF_ADDR_TYPE_INVOKER_LOCATOR_URL, url);

      // Return
View Full Code Here

      // Mock up a @RemoteBinding if none specified but are required
      if ((beanMetaDataDelegate.getBusinessRemotes() != null || beanMetaDataDelegate.getHome() != null)
            && (beanMetaDataDelegate.getRemoteBindings() == null || beanMetaDataDelegate.getRemoteBindings().size() == 0))
      {
         List<RemoteBindingMetaData> remoteBindings = new ArrayList<RemoteBindingMetaData>();
         RemoteBindingMetaData remoteBinding = new RemoteBindingMetaData();
         remoteBindings.add(remoteBinding);
         beanMetaDataDelegate.setRemoteBindings(remoteBindings);
      }

      // Use a Session JNDI Binding Policy for the metadata
View Full Code Here

      {
         // Obtain RemoteBinding URL
         List<RemoteBindingMetaData> bindings = smd.getRemoteBindings();

         // Get Client Bind URL
         RemoteBindingMetaData remoteBinding = null;
         String url = null;
         try
         {
            // If bindings are specified
            if (bindings != null)
            {
               remoteBinding = bindings.get(0);
               url = remoteBinding.getClientBindUrl();
            }
         }
         // The bindings were empty
         catch (IndexOutOfBoundsException ioobe)
         {
            // Create a new empty remote binding and add to the metadata
            remoteBinding = new RemoteBindingMetaData();
            smd.getRemoteBindings().add(remoteBinding);
         }

         // If no explicit Client Bind URL is specified
         if (url == null || url.trim().equals(""))
         {
            // Use the binding on the EJB3 Remoting Connector
            url = this.getDefaultClientBinding();
            remoteBinding.setClientBindUrl(url);
         }
         // Create and register a remote proxy factory
         String remoteProxyFactoryKey = this.getProxyFactoryRegistryKey(smd, false);
         SessionProxyFactory factory = this.createRemoteProxyFactory(remoteProxyFactoryKey, containerName,
               containerGuid, smd, cl, url, advisor);
View Full Code Here

   protected RefAddr createRemotingRefAddr(JBossSessionBeanMetaData smd)
   {
      // Obtain RemoteBinding
      List<RemoteBindingMetaData> bindings = smd.getRemoteBindings();
      assert bindings != null && bindings.size() > 0 : "Remote Bindings are required and none are present";
      RemoteBindingMetaData remoteBinding = smd.getRemoteBindings().get(0);

      // Create RefAddr for InvokerLocator
      String url = remoteBinding.getClientBindUrl();
      assert url != null && url.trim().toString().length() != 0 : InvokerLocator.class.getSimpleName()
            + " URL must be defined, and is unspecified";
      RefAddr refAddr = new StringRefAddr(ProxyFactoryReferenceAddressTypes.REF_ADDR_TYPE_INVOKER_LOCATOR_URL, url);

      // Return
View Full Code Here

      }

      // For each remote binding, populate metadata
      for (RemoteBinding binding : remoteBindingsSet)
      {
         RemoteBindingMetaData md = new RemoteBindingMetaData();
         md.setClientBindUrl(binding.clientBindUrl());
         md.setInterceptorStack(binding.interceptorStack());
         md.setJndiName(binding.jndiBinding());
         md.setProxyFactory(binding.factory());
         //TODO binding.invokerName?
         rbmd.add(md);
      }

      // Populate metadata for @RemoteHomeBinding
View Full Code Here

      }

      // For each remote binding, populate metadata
      for (RemoteBinding binding : remoteBindingsSet)
      {
         RemoteBindingMetaData md = new RemoteBindingMetaData();
         md.setClientBindUrl(binding.clientBindUrl());
         md.setInterceptorStack(binding.interceptorStack());
         md.setJndiName(binding.jndiBinding());
         md.setProxyFactory(binding.factory());
         //TODO binding.invokerName?
         rbmd.add(md);
      }

      // Populate metadata for @RemoteHomeBinding
View Full Code Here

TOP

Related Classes of org.jboss.metadata.ejb.jboss.RemoteBindingMetaData

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.