Examples of RemoteProxyFactory


Examples of org.jboss.ejb3.core.proxy.spi.RemoteProxyFactory

      }

      // Allow override of the remote proxy
      if(!isLocal)
      {
         RemoteProxyFactory remoteProxyFactory = CurrentRemoteProxyFactory.get();
         if(remoteProxyFactory != null)
            return remoteProxyFactory.create(null);
      }
     
      // Lookup
      String proxyFactoryKey = this.getJndiRegistrar().getProxyFactoryRegistryKey(jndiName, smd, isLocal);
      Object factory = Ejb3RegistrarLocator.locateRegistrar().lookup(proxyFactoryKey);
View Full Code Here

Examples of org.jboss.ejb3.core.proxy.spi.RemoteProxyFactory

      invokeInit(null, method, sessionId, method.getParameterTypes(), args);

      // Allow override of the remote proxy
      if(!isLocal)
      {
         RemoteProxyFactory remoteProxyFactory = CurrentRemoteProxyFactory.get();
         if(remoteProxyFactory != null)
            return remoteProxyFactory.create(sessionId);
      }
     
      // Lookup
      String proxyFactoryKey = this.getJndiRegistrar().getProxyFactoryRegistryKey(jndiName, smd, isLocal);
      Object factory = Ejb3RegistrarLocator.locateRegistrar().lookup(proxyFactoryKey);
View Full Code Here

Examples of org.jboss.ejb3.proxy.factory.RemoteProxyFactory

         RemoteBinding[] list = remoteBindings.value();
         for(RemoteBinding binding : list)
         {
            assert binding.jndiBinding().length() != 0 : "jndiBinding not set on binding " + binding;
           
            RemoteProxyFactory factory;
            String factoryImplementationRegistryKey = binding.factory();
            if (factoryImplementationRegistryKey.equals(RemoteBindingDefaults.PROXY_FACTORY_DEFAULT))
            {
               factory = container.getProxyFactory(binding);
            }
            else
            {
               Class<? extends RemoteProxyFactory> remoteFactoryClass = container.getDeployment().getRemoteProxyFactoryRegistry().getProxyFactoryClass(binding.factory());
               Constructor<? extends RemoteProxyFactory> constructor = getConstructor(remoteFactoryClass, container.getClass(), RemoteBinding.class);
               factory = constructor.newInstance(container, binding);
            }
            factory.start();
            proxyFactories.put(binding,factory);
         }
      }

      if (localBinding != null)
      {
         ProxyFactory factory = container.getProxyFactory(localBinding);
         factory.start();
         proxyFactories.put(localBinding,factory);
      }
   }
View Full Code Here

Examples of org.jboss.ejb3.proxy.factory.RemoteProxyFactory

         RemoteBinding[] list = remoteBindings.value();
         for(RemoteBinding binding : list)
         {
            assert binding.jndiBinding().length() != 0 : "jndiBinding not set on binding " + binding;
           
            RemoteProxyFactory factory;
            String factoryImplementationRegistryKey = binding.factory();
            if (factoryImplementationRegistryKey.equals(RemoteBindingDefaults.PROXY_FACTORY_DEFAULT))
            {
               factory = container.getProxyFactory(binding);
            }
            else
            {
               Class<? extends RemoteProxyFactory> remoteFactoryClass = container.getDeployment().getRemoteProxyFactoryRegistry().getProxyFactoryClass(binding.factory());
               Constructor<? extends RemoteProxyFactory> constructor = getConstructor(remoteFactoryClass, container.getClass(), RemoteBinding.class);
               factory = constructor.newInstance(container, binding);
            }
            factory.start();
            proxyFactories.put(binding,factory);
         }
      }

      if (localBinding != null)
      {
         ProxyFactory factory = container.getProxyFactory(localBinding);
         factory.start();
         proxyFactories.put(localBinding,factory);
      }
   }
View Full Code Here

Examples of org.jboss.ejb3.proxy.factory.RemoteProxyFactory

         RemoteBinding[] list = remoteBindings.value();
         for(RemoteBinding binding : list)
         {
            assert binding.jndiBinding().length() != 0 : "jndiBinding not set on binding " + binding;
           
            RemoteProxyFactory factory;
            String factoryImplementationRegistryKey = binding.factory();
            if (factoryImplementationRegistryKey.equals(RemoteBindingDefaults.PROXY_FACTORY_DEFAULT))
            {
               factory = container.getProxyFactory(binding);
            }
            else
            {
               Class<? extends RemoteProxyFactory> remoteFactoryClass = container.getDeployment().getRemoteProxyFactoryRegistry().getProxyFactoryClass(binding.factory());
               Constructor<? extends RemoteProxyFactory> constructor = getConstructor(remoteFactoryClass, container.getClass(), RemoteBinding.class);
               factory = constructor.newInstance(container, binding);
            }
            factory.start();
            proxyFactories.put(binding,factory);
         }
      }

      if (localBinding != null)
      {
         ProxyFactory factory = container.getProxyFactory(localBinding);
         factory.start();
         proxyFactories.put(localBinding,factory);
      }
   }
View Full Code Here

Examples of org.jboss.ejb3.proxy.factory.RemoteProxyFactory

         RemoteBinding[] list = remoteBindings.value();
         for(RemoteBinding binding : list)
         {
            assert binding.jndiBinding().length() != 0 : "jndiBinding not set on binding " + binding;
           
            RemoteProxyFactory factory;
            String factoryImplementationRegistryKey = binding.factory();
            if (factoryImplementationRegistryKey.equals(RemoteBindingDefaults.PROXY_FACTORY_DEFAULT))
            {
               factory = container.getProxyFactory(binding);
            }
            else
            {
               Class<? extends RemoteProxyFactory> remoteFactoryClass = container.getDeployment().getRemoteProxyFactoryRegistry().getProxyFactoryClass(binding.factory());
               Constructor<? extends RemoteProxyFactory> constructor = getConstructor(remoteFactoryClass, container.getClass(), RemoteBinding.class);
               factory = constructor.newInstance(container, binding);
            }
            factory.start();
            proxyFactories.put(binding,factory);
         }
      }

      if (localBinding != null)
      {
         ProxyFactory factory = container.getProxyFactory(localBinding);
         factory.start();
         proxyFactories.put(localBinding,factory);
      }
   }
View Full Code Here

Examples of org.jboss.ejb3.proxy.factory.RemoteProxyFactory

         RemoteBinding[] list = remoteBindings.value();
         for(RemoteBinding binding : list)
         {
            assert binding.jndiBinding().length() != 0 : "jndiBinding not set on binding " + binding;
           
            RemoteProxyFactory factory;
            String factoryImplementationRegistryKey = binding.factory();
            if (factoryImplementationRegistryKey.equals(RemoteBindingDefaults.PROXY_FACTORY_DEFAULT))
            {
               factory = container.getProxyFactory(binding);
            }
            else
            {
               Class<? extends RemoteProxyFactory> remoteFactoryClass = container.getDeployment().getRemoteProxyFactoryRegistry().getProxyFactoryClass(binding.factory());
               Constructor<? extends RemoteProxyFactory> constructor = getConstructor(remoteFactoryClass, container.getClass(), RemoteBinding.class);
               factory = constructor.newInstance(container, binding);
            }
            factory.start();
            proxyFactories.put(binding,factory);
         }
      }

      if (localBinding != null)
      {
         ProxyFactory factory = container.getProxyFactory(localBinding);
         factory.start();
         proxyFactories.put(localBinding,factory);
      }
   }
View Full Code Here

Examples of org.jboss.ejb3.proxy.factory.RemoteProxyFactory

         RemoteBinding[] list = remoteBindings.value();
         for(RemoteBinding binding : list)
         {
            assert binding.jndiBinding().length() != 0 : "jndiBinding not set on binding " + binding;
           
            RemoteProxyFactory factory;
            String factoryImplementationRegistryKey = binding.factory();
            if (factoryImplementationRegistryKey.equals(RemoteBindingDefaults.PROXY_FACTORY_DEFAULT))
            {
               //TODO Only used in @Service now, this whole class is @Deprecated
               factory = ((ServiceContainer)container).getProxyFactoryForService(binding);
            }
            else
            {
               Class<? extends RemoteProxyFactory> remoteFactoryClass = container.getDeployment().getRemoteProxyFactoryRegistry().getProxyFactoryClass(binding.factory());
               Constructor<? extends RemoteProxyFactory> constructor = getConstructor(remoteFactoryClass, container.getClass(), RemoteBinding.class);
               factory = constructor.newInstance(container, binding);
            }
            factory.start();
            proxyFactories.put(binding,factory);
         }
      }

      if (localBinding != null)
      {
         ProxyFactory factory = container.getProxyFactory(localBinding);
         factory.start();
         proxyFactories.put(localBinding,factory);
      }
   }
View Full Code Here

Examples of org.jboss.ejb3.proxy.factory.RemoteProxyFactory

         RemoteBinding[] list = remoteBindings.value();
         for(RemoteBinding binding : list)
         {
            assert binding.jndiBinding().length() != 0 : "jndiBinding not set on binding " + binding;
           
            RemoteProxyFactory factory;
            String factoryImplementationRegistryKey = binding.factory();
            if (factoryImplementationRegistryKey.equals(RemoteBindingDefaults.PROXY_FACTORY_DEFAULT))
            {
               factory = container.getProxyFactory(binding);
            }
            else
            {
               Class<? extends RemoteProxyFactory> remoteFactoryClass = container.getDeployment().getRemoteProxyFactoryRegistry().getProxyFactoryClass(binding.factory());
               Constructor<? extends RemoteProxyFactory> constructor = remoteFactoryClass.getConstructor(SessionContainer.class, RemoteBinding.class);
               factory = constructor.newInstance(container, binding);
            }
            factory.start();
            proxyFactories.put(binding,factory);
         }
      }

      if (localBinding != null)
      {
         ProxyFactory factory = container.getProxyFactory(localBinding);
         factory.start();
         proxyFactories.put(localBinding,factory);
      }
   }
View Full Code Here

Examples of org.jboss.ejb3.remoting.RemoteProxyFactory

         RemoteBinding[] list = remoteBindings.value();
         for(RemoteBinding binding : list)
         {
            assert binding.jndiBinding().length() != 0 : "jndiBinding not set on binding " + binding;
           
            RemoteProxyFactory factory;
            String factoryImplementationRegistryKey = binding.factory();
            if (factoryImplementationRegistryKey.equals(RemoteBindingDefaults.PROXY_FACTORY_DEFAULT))
            {
               factory = container.createRemoteProxyFactory(binding);
            }
            else
            {
               Class<? extends RemoteProxyFactory> remoteFactoryClass = container.getDeployment().getRemoteProxyFactoryRegistry().getProxyFactoryClass(binding.factory());
               Constructor<? extends RemoteProxyFactory> constructor = remoteFactoryClass.getConstructor(SessionContainer.class, RemoteBinding.class);
               factory = constructor.newInstance(container, binding);
            }
            factory.start();
            proxyFactories.add(factory);
         }
      }

      if (localBinding != null)
      {
         ProxyFactory factory = container.createProxyFactory(localBinding);
         factory.start();
         proxyFactories.add(factory);
      }
   }
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.