Package org.jboss.invocation.iiop

Examples of org.jboss.invocation.iiop.ServantRegistryKind


      else
         policies = new Policy[] { codebasePolicy, sslPolicy, csiv2Policy };


      // Read POA usage model from proxy factory config.
      ServantRegistryKind registryWithTransientPOA;
      ServantRegistryKind registryWithPersistentPOA;
      Element proxyFactoryConfig = invokerMetaData.getProxyFactoryConfig();
      String poaUsageModel =
         MetaData.getOptionalChildContent(proxyFactoryConfig, "poa");
      if (poaUsageModel == null || poaUsageModel.equals("shared")) {
         registryWithTransientPOA = ServantRegistryKind.SHARED_TRANSIENT_POA;
View Full Code Here


      // TODO: obtain the iiop invoker name properly
      ObjectName invokerName = new ObjectName("jboss:service=invoker,type=iiop");
      ServantRegistries servantRegistries = (ServantRegistries) Registry.lookup(invokerName);
      if(servantRegistries == null)
         throw new Exception("can't find iiop invoker");
      ServantRegistryKind registryWithTransientPOA;
      ServantRegistryKind registryWithPersistentPOA;
      if(iiop.poa().equals(IIOP.POA_PER_SERVANT))
      {
         registryWithTransientPOA = ServantRegistryKind.TRANSIENT_POA_PER_SERVANT;
         registryWithPersistentPOA = ServantRegistryKind.PERSISTENT_POA_PER_SERVANT;
      }
View Full Code Here

      else
         policies = new Policy[] { codebasePolicy, sslPolicy, csiv2Policy };


      // Read POA usage model from proxy factory config.
      ServantRegistryKind registryWithTransientPOA;
      ServantRegistryKind registryWithPersistentPOA;
      Element proxyFactoryConfig = invokerMetaData.getProxyFactoryConfig();
      String poaUsageModel =
         MetaData.getOptionalChildContent(proxyFactoryConfig, "poa");
      if (poaUsageModel == null || poaUsageModel.equals("shared")) {
         registryWithTransientPOA = ServantRegistryKind.SHARED_TRANSIENT_POA;
View Full Code Here

/* 439 */       policies = new Policy[] { this.codebasePolicy, this.sslPolicy, this.csiv2Policy };
/*     */     }
/*     */
/* 445 */     Element proxyFactoryConfig = this.invokerMetaData.getProxyFactoryConfig();
/* 446 */     String poaUsageModel = MetaData.getOptionalChildContent(proxyFactoryConfig, "poa");
/*     */     ServantRegistryKind registryWithPersistentPOA;
/* 448 */     if ((poaUsageModel == null) || (poaUsageModel.equals("shared"))) {
/* 449 */       ServantRegistryKind registryWithTransientPOA = ServantRegistryKind.SHARED_TRANSIENT_POA;
/* 450 */       registryWithPersistentPOA = ServantRegistryKind.SHARED_PERSISTENT_POA;
/*     */     }
/*     */     else
/*     */     {
/*     */       ServantRegistryKind registryWithPersistentPOA;
/* 452 */       if (poaUsageModel.equals("per-servant")) {
/* 453 */         ServantRegistryKind registryWithTransientPOA = ServantRegistryKind.TRANSIENT_POA_PER_SERVANT;
/*     */
/* 455 */         registryWithPersistentPOA = ServantRegistryKind.PERSISTENT_POA_PER_SERVANT;
/*     */       }
/*     */       else
/*     */       {
/* 459 */         throw new Exception("invalid poa element in proxy factory config: " + poaUsageModel);
/*     */       }
/*     */     }
/*     */     ServantRegistryKind registryWithPersistentPOA;
/*     */     ServantRegistryKind registryWithTransientPOA;
/* 465 */     InterfaceDef homeInterfaceDef = null;
/* 466 */     if (this.iri != null) {
/* 467 */       Repository ir = this.iri.getReference();
/* 468 */       homeInterfaceDef = InterfaceDefHelper.narrow(ir.lookup_id(this.homeRepositoryIds[0]));
/*     */     }
View Full Code Here

/*     */
/* 286 */     ObjectName invokerName = new ObjectName("jboss:service=invoker,type=iiop");
/* 287 */     ServantRegistries servantRegistries = (ServantRegistries)Registry.lookup(invokerName);
/* 288 */     if (servantRegistries == null)
/* 289 */       throw new Exception("can't find iiop invoker");
/*     */     ServantRegistryKind registryWithPersistentPOA;
/* 292 */     if (iiop.poa().equals("per-servant"))
/*     */     {
/* 294 */       ServantRegistryKind registryWithTransientPOA = ServantRegistryKind.TRANSIENT_POA_PER_SERVANT;
/* 295 */       registryWithPersistentPOA = ServantRegistryKind.PERSISTENT_POA_PER_SERVANT;
/*     */     }
/*     */     else
/*     */     {
/*     */       ServantRegistryKind registryWithPersistentPOA;
/* 297 */       if (iiop.poa().equals("shared"))
/*     */       {
/* 299 */         ServantRegistryKind registryWithTransientPOA = ServantRegistryKind.SHARED_TRANSIENT_POA;
/* 300 */         registryWithPersistentPOA = ServantRegistryKind.SHARED_PERSISTENT_POA;
/*     */       }
/*     */       else {
/* 303 */         throw new IllegalArgumentException("@IIOP.poa can only be 'per-servant' or 'shared'");
/*     */       }
/*     */     }
/*     */     ServantRegistryKind registryWithPersistentPOA;
/*     */     ServantRegistryKind registryWithTransientPOA;
/* 305 */     this.servantRegistry = servantRegistries.getServantRegistry(registryWithTransientPOA);
/* 306 */     this.homeServantRegistry = servantRegistries.getServantRegistry(registryWithPersistentPOA);
/*     */
/* 310 */     ObjectName on = this.container.getObjectName();
/* 311 */     this.wcl = new EJB3IIOPWebClassLoader(on, (RealClassLoader)this.container.getClassloader(), getJndiName());
View Full Code Here

TOP

Related Classes of org.jboss.invocation.iiop.ServantRegistryKind

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.