Examples of servant_to_reference()


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()

    // Test: servant_to_reference (IMPLICIT_ACTIVATION, MULTIPLE_ID) -
    //       servant1 should be automatically activated
    //
    try
      {
        obj = multiple.servant_to_reference(servant1);
      }
    catch (WrongPolicy ex)
      {
        fail(ex);
        throw new RuntimeException(ex);
View Full Code Here

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

    //
    // Test: Since we have MULTIPLE_ID, we should get a new ID
    //
    try
      {
        obj = multiple.servant_to_reference(servant1);
      }
    catch (WrongPolicy ex)
      {
        fail(ex);
        throw new RuntimeException(ex);
View Full Code Here

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

        NodeObject n = new NodeObject("x");

        Tie tie = Util.getTie(impl);

        org.omg.CORBA.Object l_object = rootPOA.servant_to_reference((Servant) tie);

        RMI_test l_r = (RMI_test) PortableRemoteObject.narrow(l_object,
          RMI_test.class);

        n.z_anotherTest = l_r;
View Full Code Here

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

        RMI_testImpl impl = new RMI_testImpl();
        impl.ego = "Server side object";
        Tie tie = Util.getTie(impl);

        org.omg.CORBA.Object object = rootPOA.servant_to_reference((Servant) tie);

        String ior = server_orb.object_to_string(object);

        return ior;
      }
View Full Code Here

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

        // with the ORB
        poa_Servant tester = new poa_Servant();

        POA rootPOA =
          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);
View Full Code Here

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

        final ORB orbf = ORB.init(new String[ 0 ], null);

        POA rootPOA2 =
          POAHelper.narrow(orbf.resolve_initial_references("RootPOA"));

        Object fobject = rootPOA2.servant_to_reference(forw);

        // Storing the IOR reference for general communication.
        fior = fobject;

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

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

    // create the bank
    BankImpl bankImpl = new BankImpl();
    LOG.info("Bank created");

    // get object reference from the servant
    org.omg.CORBA.Object ref = rootpoa.servant_to_reference(bankImpl);
    Bank bankRef = BankHelper.narrow(ref);
    LOG.info("Bank reference created");

    // get the NameService
    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 = servant._default_POA() ;
        org.omg.CORBA.Object ref = null ;

        try {
            ref = poa.servant_to_reference( servant ) ;
        } catch (ServantNotActive sna) {
            throw wrapper.getDelegateServantNotActive( sna ) ;
        } catch (WrongPolicy wp) {
            throw wrapper.getDelegateWrongPolicy( wp ) ;
        }
View Full Code Here

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

    {
  POA poa = servant._default_POA() ;
  org.omg.CORBA.Object ref = null ;

  try {
      ref = poa.servant_to_reference( servant ) ;
  } catch (ServantNotActive sna) {
      throw wrapper.getDelegateServantNotActive( sna ) ;
  } catch (WrongPolicy wp) {
      throw wrapper.getDelegateWrongPolicy( wp ) ;
  }
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.