Examples of RemoteProxyFactory


Examples of org.jboss.ejb3.remoting.RemoteProxyFactory

/*  68 */       for (RemoteBinding binding : list)
/*     */       {
/*  70 */         assert (binding.jndiBinding().length() != 0) : ("jndiBinding not set on binding " + binding);
/*     */
/*  73 */         String factoryImplementationRegistryKey = binding.factory();
/*     */         RemoteProxyFactory factory;
/*     */         RemoteProxyFactory factory;
/*  74 */         if (factoryImplementationRegistryKey.equals("RemoteProxyFactory"))
/*     */         {
/*  76 */           factory = this.container.createRemoteProxyFactory(binding);
/*     */         }
/*     */         else
/*     */         {
/*  80 */           Class remoteFactoryClass = this.container.getDeployment().getRemoteProxyFactoryRegistry().getProxyFactoryClass(binding.factory());
/*  81 */           Constructor constructor = remoteFactoryClass.getConstructor(new Class[] { SessionContainer.class, RemoteBinding.class });
/*  82 */           factory = (RemoteProxyFactory)constructor.newInstance(new Object[] { this.container, binding });
/*     */         }
/*  84 */         factory.start();
/*  85 */         this.proxyFactories.add(factory);
/*     */       }
/*     */     }
/*     */
/*  89 */     if (this.localBinding != null)
/*     */     {
/*  91 */       ProxyFactory factory = this.container.createProxyFactory(this.localBinding);
/*  92 */       factory.start();
/*  93 */       this.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.