org.omg.CORBA.ORBPackage


  1. Creating an ORB:

    // Create an ORB
    ORB orb = ORB.init(args, null);
  2. Getting the root POA:

    // Get the root POA
    POA rootPOA = orb.resolve_initial_references("RootPOA");
  3. Creating an object reference:

    // Create an object reference
    ObjectReference objRef = ORB.string_to_object("IOR:00000000000000000000000000000000");
  4. Getting the object:

    // Get the object
    Object obj = orb.string_to_object("IOR:00000000000000000000000000000000");
  5. Invoking a method on an object:

    // Invoke a method on an object
    obj.invoke("methodName", new Object[] {});
  6. Creating a servant:

    // Create a servant
    Servant servant = new MyServant();
  7. Activating a servant:

    // Activate a servant
    servant.activate(id, rootPOA);
  8. Deactivating a servant:

    // Deactivate a servant
    servant.deactivate(id, rootPOA);
  9. Obtaining a reference to an object:

    // Obtain a reference to an object
    ObjectReference objRef = servant.getReference();
  10. Creating an IOR:

  1. Getting the string representation of an IOR:

  1. Creating an IIOP profile:

  1. Setting the host:

  1. Setting the port:

  1. Getting the default IIOP profile:

  1. Setting the default IIOP profile:

  1. Getting the default ORB policy factory:

  1. Creating a policy:

  1. Adding a policy to the ORB:

  1. Getting a policy from the ORB:

  1. Creating an AOT strategy:

  1. Setting the AOT strategy:

  1. Getting the AOT strategy:

  1. Creating an IOR strategy:

  1. Setting the IOR strategy:

  1. Getting the IOR strategy:

  1. Creating an ORB listener:

  1. Adding an ORB listener:

  1. Removing an ORB listener:

  1. Getting the list of ORB listeners: