Examples of object_to_string()


Examples of org.jacorb.orb.ORB.object_to_string()

        // create the object reference
        poa.activate_object_with_id("Object".getBytes(), new BasicServerImpl());
        org.omg.CORBA.Object obj = poa.id_to_reference( "Object".getBytes() );

        ParsedIOR pior = new ParsedIOR(orb, orb.object_to_string(obj));

        assertTrue
        (
                CorbaLoc.parseKey( pior.get_object_key()).indexOf
                (props.getProperty("jacorb.implname")) == -1
View Full Code Here

Examples of org.jacorb.orb.ORB.object_to_string()

        // create the object reference
        poa.activate_object_with_id("Object".getBytes(), new BasicServerImpl());
        org.omg.CORBA.Object obj = poa.id_to_reference( "Object".getBytes() );

        ParsedIOR pior = new ParsedIOR( orb, orb.object_to_string(obj));

        assertTrue
        (
                CorbaLoc.parseKey( pior.get_object_key()).indexOf
                (props.getProperty("jacorb.implname")) != -1
View Full Code Here

Examples of org.jacorb.orb.ORB.object_to_string()

        // create the object reference
        poa.activate_object_with_id("Object".getBytes(), new BasicServerImpl());
        org.omg.CORBA.Object obj = poa.id_to_reference( "Object".getBytes() );

        ParsedIOR pior = new ParsedIOR( orb1, orb1.object_to_string(obj));


        // Now create number two.

        final ORB orb2 = newORB(props);
View Full Code Here

Examples of org.jacorb.orb.ORB.object_to_string()

        // create the object reference
        poa.activate_object_with_id("Object".getBytes(), new BasicServerImpl());
        obj = poa.id_to_reference( "Object".getBytes() );

        ParsedIOR pior2 = new ParsedIOR( orb2, orb2.object_to_string(obj));

        assertTrue
        (
                ! (CorbaLoc.parseKey( pior.get_object_key()).equals
                        (CorbaLoc.parseKey( pior2.get_object_key())))
View Full Code Here

Examples of org.jacorb.orb.ORBSingleton.object_to_string()

            // ok
        }

        try
        {
            orbs.object_to_string(null);
            fail ("should have raised NO_IMPLEMENT");
        }
        catch (org.omg.CORBA.NO_IMPLEMENT ex)
        {
            // ok
View Full Code Here

Examples of org.omg.CORBA.ORB.object_to_string()

      namingService = NamingContextExtHelper.narrow(
                  namingPOA.create_reference_with_id(rootContextId,
                                "IDL:omg.org/CosNaming/NamingContextExt:1.0"));
      bind(NAMING_NAME, "org.omg.CosNaming.NamingContextExt");
      log.info("CORBA Naming Started");
      log.debug("Naming: ["+orb.object_to_string(namingService)+"]");
   }
   
   public void stop()
   {
      // Unbind from JNDI
View Full Code Here

Examples of org.omg.CORBA.ORB.object_to_string()

    org.omg.CORBA.Object obj = poa.create_reference_with_id(id, ((Servant)tie)._all_interfaces(poa, id)[0]);
   
    // Write a IOR to a file so the client can obtain a reference to the Sample
    File sampleRef = new File("Sample.ref");
    PrintWriter writer = new PrintWriter(new FileOutputStream(sampleRef));
    writer.write(orb.object_to_string(obj));
    writer.close();
    orb.run();
  }

}
View Full Code Here

Examples of org.omg.CORBA.ORB.object_to_string()

    String refFile = "Test.ref";
    try
      {
        FileOutputStream file = new FileOutputStream(refFile);
        PrintWriter out = new PrintWriter(file);
        out.println(ior = orb.object_to_string(server));
        out.flush();
        file.close();
      }
    catch (IOException ex)
      {
View Full Code Here

Examples of org.omg.CORBA.ORB.object_to_string()

        // bind the corba naming service to JNDI.
        CorbaServiceUtil.bindObject(context.getChildTarget(), "corbanaming", namingService);

        log.info("CORBA Naming Service Started");
        log.debugf("Naming: [" + orb.object_to_string(namingService) + "]");
    }

    @Override
    public void stop(StopContext context) {
        log.debugf("Stopping Service " + context.getController().getName().getCanonicalName());
View Full Code Here

Examples of org.omg.CORBA.ORB.object_to_string()

        // bind the corba naming service to JNDI.
        CorbaServiceUtil.bindObject(context.getChildTarget(), "corbanaming", namingService);

        JacORBLogger.ROOT_LOGGER.corbaNamingServiceStarted();
        JacORBLogger.ROOT_LOGGER.debugNamingServiceIOR(orb.object_to_string(namingService));
    }

    @Override
    public void stop(StopContext context) {
        JacORBLogger.ROOT_LOGGER.debugServiceStop(context.getController().getName().getCanonicalName());
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.