Package org.omg.CORBA

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


    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

    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

        // 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

        // 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

                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

            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

    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

      }
    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

        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

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.