Examples of IIOP


Examples of org.jboss.ejb3.annotation.IIOP

      }
   }
  
   private IIOP getIIOP()
   {
      IIOP iiop = container.getAnnotation(IIOP.class);
      if(iiop != null)
         return iiop;
     
      return defaultIIOP;
   }
View Full Code Here

Examples of org.jboss.ejb3.annotation.IIOP

      }
      catch (NamingException e) {
         throw new Exception("Cannot lookup java:/" + CorbaORBService.IR_POA_NAME + ": " + e);
      }
     
      IIOP iiop = getIIOP();
      if(iiop.interfaceRepositorySupported())
      {
         this.iri = new InterfaceRepository(orb, irPoa, getJndiName());
         iri.mapClass(remoteInterfaces[0]);
         if(homeInterface != null)
            iri.mapClass(homeInterface);
         iri.finishBuild();
      }
     
      // 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;
      }
      else if(iiop.poa().equals(IIOP.POA_SHARED))
      {
         registryWithTransientPOA = ServantRegistryKind.SHARED_TRANSIENT_POA;
         registryWithPersistentPOA = ServantRegistryKind.SHARED_PERSISTENT_POA;
      }
      else
View Full Code Here

Examples of org.jboss.ejb3.annotation.IIOP

/* 178 */     throw new RuntimeException(e);
/*     */   }
/*     */
/*     */   private IIOP getIIOP()
/*     */   {
/* 184 */     IIOP iiop = (IIOP)this.container.getAnnotation(IIOP.class);
/* 185 */     if (iiop != null) {
/* 186 */       return iiop;
/*     */     }
/* 188 */     return defaultIIOP;
/*     */   }
View Full Code Here

Examples of org.jboss.ejb3.annotation.IIOP

/*     */     }
/*     */     catch (NamingException e) {
/* 272 */       throw new Exception("Cannot lookup java:/" + CorbaORBService.IR_POA_NAME + ": " + e);
/*     */     }
/*     */
/* 275 */     IIOP iiop = getIIOP();
/* 276 */     if (iiop.interfaceRepositorySupported())
/*     */     {
/* 278 */       this.iri = new InterfaceRepository(this.orb, this.irPoa, getJndiName());
/* 279 */       this.iri.mapClass(remoteInterfaces[0]);
/* 280 */       if (homeInterface != null)
/* 281 */         this.iri.mapClass(homeInterface);
/* 282 */       this.iri.finishBuild();
/*     */     }
/*     */
/* 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 {
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.