Examples of ORB


Examples of com.arjuna.orbportability.ORB

   private static void initOrb()
   {
       if (!oi)
       {
           oi = true;
           ORB orb = ORB.getInstance("ServerSide");
           orb.initORB(new String[] {}, null);
       }
   }
View Full Code Here

Examples of com.sun.corba.ee.spi.orb.ORB

    public void pre_init(ORBInitInfo info) { }

    public void post_init(ORBInitInfo info)
    {
  ORB orb = ((ORBInitInfoExt)info).getORB() ;
  try {
      info.add_ior_interceptor(new FailoverIORInterceptor(orb));
      _logger.log(Level.FINE, baseMsg + " registered.");
  } catch (DuplicateName ex) {
            _logger.log(Level.WARNING, "DuplicateName from " + baseMsg , ex);
View Full Code Here

Examples of com.sun.corba.se.spi.orb.ORB

        if (!(orig instanceof Remote))
      // Not for this StateFactory
      return null ;

  ORB orb = getORB( ctx ) ;
  if (orb == null)
      // Wrong kind of context, so just give up and let another StateFactory
      // try to satisfy getStateToBind.
      return null ;
View Full Code Here

Examples of com.sun.corba.se.spi.orb.ORB

    // to use the StubAdapter.  But this has problems as well, because
    // other vendors may use the CosNaming provider with a different ORB
    // entirely.
    private ORB getORB( Context ctx )
    {
  ORB orb = null ;

  try {
      orb = (ORB)orbField.get( ctx ) ;
  } catch (Exception exc) {
      // XXX log this exception at FINE level
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.Orb

    }


    S1ASThreadPoolManager() {

  Orb orbBean = null;
 
        try {
            ServerContext serverContext = ApplicationServer.getServerContext();
            
            ConfigContext configContext = serverContext.getConfigContext();
View Full Code Here

Examples of org.exolab.jms.net.orb.ORB

        getORB().shutdown(); // default ORB setup withouth auth

        // set up the orb
        BasicPrincipal principal = new BasicPrincipal("user", "password");
        Authenticator authenticator = new TestAuthenticator(principal);
        ORB orb = createORB(authenticator);

        // set up the echo service
        EchoService service = new EchoServiceImpl();
        _service = orb.exportObject(service);
        assertTrue(_service instanceof EchoService);
        orb.getRegistry().bind(ECHO_SERVICE, _service);

        // make sure a valid user can perform a lookup
        Registry registry = getRegistry(principal);
        assertNotNull(registry);
        Proxy proxy = registry.lookup(ECHO_SERVICE);
View Full Code Here

Examples of org.jacorb.orb.ORB

  extends org.omg.CORBA.LocalObject
  implements ORBInitializer
{
    public void post_init(ORBInitInfo info)
    {
        final ORB orb = ((org.jacorb.orb.portableInterceptor.ORBInitInfoImpl) info).getORB();
        final Logger logger = orb.getConfiguration().getLogger("org.jacorb.interceptors.ior_init");

        try
        {
            Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value,
                                             (byte) 1, (byte) 0);
View Full Code Here

Examples of org.jdesktop.wonderland.modules.orb.server.cell.Orb

  }

  Vector3f center = new Vector3f((float) -vp.playerWithVirtualPlayer.getX(), (float) 2.3,
      (float) vp.playerWithVirtualPlayer.getZ());

  Orb orb;

  CallSetup callSetup = vp.playerWithVirtualPlayer.getCall().getSetup();

  if (callSetup.incomingCall || callSetup.externalOutgoingCall) {
      /*
       * Don't create virtual orb's for outworlders
       */
      return;
  }

  orb = new Orb(vp, center, .1, vp.realPlayer.getId(), new String[0]);

  orb.addComponent(new AudioParticipantComponentMO(orb.getOrbCellMO()));

  orbMap.put(vp.getId(), AppContext.getDataManager().createReference(orb));

  logger.warning("virtualPlayerAdded:  " + vp + " Center " + center);
    }
View Full Code Here

Examples of org.jdesktop.wonderland.modules.orb.server.cell.Orb

      if (orbRef == null) {
    logger.warning("No orb for " + vp);
    return;
      }

      Orb orb = orbRef.get();

      if (orb.addToUseCount(-1) == 0) {
    logger.fine("Removing " + vp.getId() + " from orbs");
    orbMap.remove(vp.getId());

    vp.realPlayer.setPrivateMixes(true);
          orb.done();
      }
  }
    }
View Full Code Here

Examples of org.omg.CORBA.ORB

      Util.gc(2);
      int threadsBefore = ThreadLister.countThreads();
      for (int ii=0; ii<20; ii++) {
         System.out.println("Hit a key for ORB #" + ii + "/20");
         try { System.in.read(); } catch(java.io.IOException e) {}
         ORB orb = OrbInstanceFactory.createOrbInstance(glob, new String[0], null, new CallbackAddress(glob));
         try {
            POA rootPOA = org.omg.PortableServer.POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
            rootPOA.the_POAManager().activate();
         }
         catch (Throwable e) {
            e.printStackTrace();
            System.out.println("ERROR: " + e.toString());
         }
         // Without orb.shutdown we use 2 threads for each loop!
         orb.shutdown(true);
      }
      Util.gc(2);
      assertEquals("JacORB has a thread leak", threadsBefore, ThreadLister.countThreads());
   }
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.