Package org.omg.CORBA

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


          .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

        GSLoadBalancerImpl servant = new GSLoadBalancerImpl();

        byte[] id = poa.activate_object(servant);
        org.omg.CORBA.Object obj = poa.id_to_reference( id ) ;

        String IOR = orb.object_to_string(obj);

        ((org.jacorb.orb.ORB)orb).addObjectKey("GSLBService", IOR);

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

        byte []oid = poa.servant_to_id (servant);

        // create the object reference
        org.omg.CORBA.Object obj = poa.id_to_reference (oid);

        System.out.println ("SERVER IOR: " + orb.object_to_string(obj));
        System.out.flush();

        // wait for requests
        orb.run();
View Full Code Here

        ComputInterface computInterfaceRef = computInterface._this(orb);

        HelloInterfaceImpl helloInterface = new HelloInterfaceImpl(orb,rootPoa, computInterfaceRef);
        HelloInterface helloInterfaceRef = helloInterface._this(orb);

        System.out.println ("SERVER IOR: " + orb.object_to_string(helloInterfaceRef));
        System.out.flush();

        // wait for requests
        orb.run();
    }
View Full Code Here

                    }

                    org.omg.CORBA.Object objP = orb.string_to_object(corbalocStr);
                    if (!cmdArgs.getTestMode())
                    {
                        System.out.println("Server-Persistent ior: " + orb.object_to_string (objP));
                    }
                    else if (cmdArgs.getTestType().equalsIgnoreCase("P") ||
                                cmdArgs.getTestType().equalsIgnoreCase("A"))
                    {
                        System.out.println("SERVER IOR: " + orb.object_to_string (objP));
View Full Code Here

                        System.out.println("Server-Persistent ior: " + orb.object_to_string (objP));
                    }
                    else if (cmdArgs.getTestType().equalsIgnoreCase("P") ||
                                cmdArgs.getTestType().equalsIgnoreCase("A"))
                    {
                        System.out.println("SERVER IOR: " + orb.object_to_string (objP));
                    }
                    System.out.flush();

                    if (cmdArgs.getIORFile() != null)
                    {
View Full Code Here

                    if (cmdArgs.getIORFile() != null)
                    {
                        PrintWriter ps = new PrintWriter(new FileOutputStream(
                                new File( cmdArgs.getIORFile() + Integer.toString(n) ) + ".persistent"));
                        ps.println( orb.object_to_string( objP ) );
                        ps.close();
                    }

                    // Add an object key mapping to second server
                    // System.out.println("Adding object mapping for server 1 ior: " + orb.object_to_string (objP));
View Full Code Here

                        ps.close();
                    }

                    // Add an object key mapping to second server
                    // System.out.println("Adding object mapping for server 1 ior: " + orb.object_to_string (objP));
                    ((org.jacorb.orb.ORB)orb).addObjectKey ("VeryShortKey", orb.object_to_string (objP));
              }
         }

         // Setup second server
         org.omg.CORBA.Object objT = helloPOATransient.servant_to_reference(new EchoMessageImpl("EchoPOA-Transient"));
View Full Code Here

         // Setup second server
         org.omg.CORBA.Object objT = helloPOATransient.servant_to_reference(new EchoMessageImpl("EchoPOA-Transient"));

         // Use the PrintIOR utility function to extract a transient corbaloc string.
         String corbalocStr = PrintIOR.printCorbalocIOR (orb, orb.object_to_string(objT));
         if (!cmdArgs.getTestMode())
         {
             System.out.println("Server-Transient corbaloc: " + corbalocStr);
         }
         else if (cmdArgs.getTestType().equalsIgnoreCase("T") ||
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.