Examples of activate_object_with_id()


Examples of org.omg.PortableGroup.GOA.activate_object_with_id()

                                                        payload_calls);

        org.omg.CORBA.Object obj = orb.string_to_object(uipmc_url);

        byte[] oid = goa.create_id_for_reference(obj);
        goa.activate_object_with_id(oid, uipmcImpl);

        UIPMC_Object uipmc_obj = UIPMC_ObjectHelper.unchecked_narrow(obj);

        System.out.println("MIOP object is <" + orb.object_to_string(obj) + ">");
View Full Code Here

Examples of org.omg.PortableServer.POA.activate_object_with_id()

            boolean noPing = configuration.getAttribute("jacorb.naming.noping", "off").equals("on");
            ns.init(namingPOA, doPurge, noPing);

            // create and activate the root context.
            byte[] rootContextId = "root".getBytes();
            namingPOA.activate_object_with_id(rootContextId, ns);
            namingService = NamingContextExtHelper.narrow(namingPOA.create_reference_with_id(rootContextId,
                    "IDL:omg.org/CosNaming/NamingContextExt:1.0"));
        } catch (Exception e) {
            throw new StartException("Failed to start the CORBA Naming Service", e);
        }
View Full Code Here

Examples of org.omg.PortableServer.POA.activate_object_with_id()

            boolean noPing = configuration.getAttribute("jacorb.naming.noping", "off").equals("on");
            ns.init(namingPOA, doPurge, noPing);

            // create and activate the root context.
            byte[] rootContextId = "root".getBytes();
            namingPOA.activate_object_with_id(rootContextId, ns);
            namingService = NamingContextExtHelper.narrow(namingPOA.create_reference_with_id(rootContextId,
                    "IDL:omg.org/CosNaming/NamingContextExt:1.0"));
        } catch (Exception e) {
            throw JacORBMessages.MESSAGES.failedToStartJBossCOSNaming(e);
        }
View Full Code Here

Examples of org.omg.PortableServer.POA.activate_object_with_id()

        poa.the_activator(new gnuAdapterActivator());

        POA npoa = poa.find_POA("xactivated", true);

        npoa.activate_object_with_id(new byte[] { 7, 5 }, new poa_Servant());
        write_reference(orb, npoa.id_to_reference(new byte[] { 7, 5 }),
                        "xactivated"
                       );

        root_poa.the_POAManager().activate();
View Full Code Here

Examples of org.omg.PortableServer.POA.activate_object_with_id()

        org.omg.CORBA.Object sservantObject1adefault2 =
          sspoa_a.create_reference_with_id(new byte[] { 4, 4, 4, 2 },
                                           poa_comTesterHelper.id()
                                          );

        sspoa_a.activate_object_with_id(new byte[] { 4, 4, 4, 5, 5, 5, 5 },
                                        new poa_Servant()
                                       );

        org.omg.CORBA.Object sservantObject1aother =
          sspoa_a.id_to_reference(new byte[] { 4, 4, 4, 5, 5, 5, 5 });
View Full Code Here

Examples of org.omg.PortableServer.POA.activate_object_with_id()

    //
    // Test: reference_to_servant (USE_DEFAULT_SERVANT)
    //
    try
      {
        defaultPOA.activate_object_with_id(id1, servant1);
        defaultPOA.activate_object_with_id(id2, servant2);
      }
    catch (ObjectAlreadyActive ex)
      {
        fail(ex);
View Full Code Here

Examples of org.omg.PortableServer.POA.activate_object_with_id()

    // Test: reference_to_servant (USE_DEFAULT_SERVANT)
    //
    try
      {
        defaultPOA.activate_object_with_id(id1, servant1);
        defaultPOA.activate_object_with_id(id2, servant2);
      }
    catch (ObjectAlreadyActive ex)
      {
        fail(ex);
        throw new RuntimeException(ex);
View Full Code Here

Examples of org.omg.PortableServer.POA.activate_object_with_id()

    //
    // Test: id_to_servant (USE_DEFAULT_SERVANT)
    //
    try
      {
        defaultPOA.activate_object_with_id(id1, servant1);
        defaultPOA.activate_object_with_id(id2, servant2);
      }
    catch (ServantAlreadyActive ex)
      {
        fail(ex);
View Full Code Here

Examples of org.omg.PortableServer.POA.activate_object_with_id()

    // Test: id_to_servant (USE_DEFAULT_SERVANT)
    //
    try
      {
        defaultPOA.activate_object_with_id(id1, servant1);
        defaultPOA.activate_object_with_id(id2, servant2);
      }
    catch (ServantAlreadyActive ex)
      {
        fail(ex);
        throw new RuntimeException(ex);
View Full Code Here

Examples of org.omg.PortableServer.POA.activate_object_with_id()

            boolean noPing = configuration.getAttribute("jacorb.naming.noping", "off").equals("on");
            ns.init(namingPOA, doPurge, noPing);

            // create and activate the root context.
            byte[] rootContextId = "root".getBytes();
            namingPOA.activate_object_with_id(rootContextId, ns);
            namingService = NamingContextExtHelper.narrow(namingPOA.create_reference_with_id(rootContextId,
                    "IDL:omg.org/CosNaming/NamingContextExt:1.0"));
        } catch (Exception e) {
            throw JacORBLogger.ROOT_LOGGER.failedToStartJBossCOSNaming(e);
        }
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.