Examples of servant_to_reference()


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

            new LookupImpl(traderComp, supportAttrib,
                           importAttrib, offerDb, link,
                           ((org.jacorb.orb.ORB)orb).getConfiguration());

    traderPOA.activate_object_with_id("Lookup".getBytes(), lookup);
    traderComp.setLookupInterface(LookupHelper.narrow(traderPOA.servant_to_reference(lookup)));

  // creating request_id_stem out of inet-address. Might as well use any other
  // way of creating a unique string
  byte[] stem =  orb.object_to_string(traderPOA.servant_to_reference(lookup)).getBytes();
View Full Code Here

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

    traderPOA.activate_object_with_id("Lookup".getBytes(), lookup);
    traderComp.setLookupInterface(LookupHelper.narrow(traderPOA.servant_to_reference(lookup)));

  // creating request_id_stem out of inet-address. Might as well use any other
  // way of creating a unique string
  byte[] stem =  orb.object_to_string(traderPOA.servant_to_reference(lookup)).getBytes();


  AdminImpl admin = new AdminImpl(traderComp, supportAttrib,
          importAttrib, linkAttrib,
          offerDb, stem);
View Full Code Here

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

  AdminImpl admin = new AdminImpl(traderComp, supportAttrib,
          importAttrib, linkAttrib,
          offerDb, stem);
    traderPOA.activate_object_with_id("Admin".getBytes(), admin);
    traderComp.setAdminInterface(AdminHelper.narrow(traderPOA.servant_to_reference(admin)));

  ProxyImpl proxy = new ProxyImpl(traderComp, supportAttrib, offerDb);
    traderPOA.activate_object_with_id("Proxy".getBytes(), proxy);
    traderComp.setProxyInterface(ProxyHelper.narrow(traderPOA.servant_to_reference(proxy)));
 
View Full Code Here

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

    traderPOA.activate_object_with_id("Admin".getBytes(), admin);
    traderComp.setAdminInterface(AdminHelper.narrow(traderPOA.servant_to_reference(admin)));

  ProxyImpl proxy = new ProxyImpl(traderComp, supportAttrib, offerDb);
    traderPOA.activate_object_with_id("Proxy".getBytes(), proxy);
    traderComp.setProxyInterface(ProxyHelper.narrow(traderPOA.servant_to_reference(proxy)));
 
  // write the IOR of the Lookup object (if necessary)
  if (iorfile != null) {
      try {
    FileOutputStream out = new FileOutputStream(iorfile);
View Full Code Here

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

  // write the IOR of the Lookup object (if necessary)
  if (iorfile != null) {
      try {
    FileOutputStream out = new FileOutputStream(iorfile);
    PrintWriter pw = new PrintWriter(out);
    pw.println(orb.object_to_string(traderPOA.servant_to_reference(lookup)));
    pw.flush();
    out.close();
      }
      catch (IOException e) {
    System.err.println("Unable to write IOR to file " + iorfile);
View Full Code Here

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

            // create servant and register it with the ORB
            PingpongImplementacao implementacao = new PingpongImplementacao();
            implementacao.setORB(orb);

            org.omg.CORBA.Object ref = rootpoa.servant_to_reference(implementacao);
            Pingpong ior = PingpongHelper.narrow(ref);

            // get the root naming context
            org.omg.CORBA.Object objRef = orb
                    .resolve_initial_references("NameService");
View Full Code Here

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

            POA poa = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
            poa.the_POAManager().activate();

            ServerStartupDaemon ssd =
                ServerStartupDaemonHelper.narrow(poa.servant_to_reference(this));

            HostInfo _me = new HostInfo(InetAddress.getLocalHost().getHostName(),
                                        ssd,
                                        orb.object_to_string(ssd));
View Full Code Here

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

            imr_poa.activate_object_with_id( id, _imr );

            PrintWriter _out = new PrintWriter
                (new FileOutputStream(new File(_imr.getIORFile())));

            final org.omg.CORBA.Object imrReference = imr_poa.servant_to_reference(_imr);
            _out.println(orb.object_to_string(imrReference));
            _out.flush();
            _out.close();

            if (printIOR)
View Full Code Here

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

    Policy[] policies = (Policy[]) plist.toArray(new Policy[0]);

    POA poa = root.create_POA("poa1", null, policies);

    org.omg.CORBA.Object ref = poa.servant_to_reference((Servant) hello);

    String ior = orb.object_to_string(ref);
   
    poa.the_POAManager().activate();
View Full Code Here

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

            imr_poa.activate_object_with_id( id, _imr );

            PrintWriter _out = new PrintWriter
                (new FileOutputStream(new File(_imr.getIORFile())));

            final org.omg.CORBA.Object imrReference = imr_poa.servant_to_reference(_imr);
            _out.println(orb.object_to_string(imrReference));
            _out.flush();
            _out.close();

            if (printIOR)
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.