Examples of object_to_string()


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

                iri = new InterfaceRepository(orb, irPoa.getValue(), name);
                // Add bean interface info to the interface repository
                iri.mapClass(remoteView.getValue().getViewClass());
                iri.mapClass(homeView.getValue().getViewClass());
                iri.finishBuild();
                EjbLogger.ROOT_LOGGER.cobraInterfaceRepository(name, orb.object_to_string(iri.getReference()));
            }

            IORSecurityConfigMetaData iorSecurityConfigMetaData = null;
            if (this.iiopMetaData != null)
                iorSecurityConfigMetaData = this.iiopMetaData.getIorSecurityConfigMetaData();
View Full Code Here

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

            final org.omg.CORBA.Object corbaRef = homeReferenceFactory.createReference(homeRepositoryIds[0]);

            //we do this twice to force eager dynamic stub creation
            ejbHome = (EJBHome) PortableRemoteObject.narrow(corbaRef, EJBHome.class);

            final HomeHandleImplIIOP homeHandle = new HomeHandleImplIIOP(orb.object_to_string(corbaRef));
            homeServant.setHomeHandle(homeHandle);

            // Initialize beanPOA and create metadata depending on the kind of bean
            if (component instanceof EntityBeanComponent) {
View Full Code Here

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

    rf11Servant servant = new rf11Servant();

    server_orb.connect(servant);

    // Writing stringified IOR to file specified by IORfilename
    String ior = server_orb.object_to_string(servant);

    new Thread()
      {
        public void run()
        {
View Full Code Here

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

      }
    catch (InterruptedException ex)
      {
      }

    String ior = server_orb.object_to_string(reflector);

    // Instantiate another orb where this reflector will be a stub:
    ORB client_orb = ORB.init(args, null);

    org.omg.CORBA.Object object =
View Full Code Here

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

        for (int i = 0; i < iors.length; i++)
          {
            // Create the servant and register it with the ORB.
            assServant tester = new assServant();
            orb.connect(tester);
            iors [ i ] = orb.object_to_string(tester);
          }

        new Thread()
          {
            public void run()
View Full Code Here

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

          POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
        Object object = rootPOA.servant_to_reference(tester);

        // IOR must contain custom fragment, inserted by interceptor.
        // Sun 1.4 had a bug that was fixed in 1.5.
        String ior = orb.object_to_string(object);

        assertTrue("IOR custom component (bug in 1.4, fixed in 1.5)",
          ior.indexOf(
            "45257200000020000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f"
          ) > 0
View Full Code Here

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

                iri = new InterfaceRepository(orb, irPoa.getValue(), name);
                // Add bean interface info to the interface repository
                iri.mapClass(remoteView.getValue().getViewClass());
                iri.mapClass(homeView.getValue().getViewClass());
                iri.finishBuild();
                logger.info("CORBA interface repository for " + name + ": " + orb.object_to_string(iri.getReference()));
            }

            // Create csiv2Policy for both home and remote containing IorSecurityConfigMetadata
            final Any secPolicy = orb.create_any();
            /*
 
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()

          .servant_to_reference(this);
      log.debug("created reference " + tmp_ref);
      AtmiBroker.EndpointQueue clientCallback = AtmiBroker.EndpointQueueHelper
          .narrow(tmp_ref);
      log.debug("narrowed reference " + clientCallback);
      callbackIOR = orb.object_to_string(clientCallback);
      log.debug("Created:" + callbackIOR);
    } catch (Throwable t) {
      throw new ConnectionException(Connection.TPESYSTEM,
          "Cannot create the receiver", t);
    }
View Full Code Here

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

            }
         },
         "ORB thread"
      ).start();
      org.omg.CORBA.Object echoedBack = session.testCorbaObject(original);
      assertEquals(orb.object_to_string(original),
                   orb.object_to_string(echoedBack));
      //----------------------------------------------------------------------
      session.remove();
   }
  
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.