Examples of activate_object_with_id()


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

        );

        poa.the_POAManager().activate();

        // create the object reference
        poa.activate_object_with_id("Object".getBytes(), new BasicServerImpl());
        org.omg.CORBA.Object obj = poa.id_to_reference( "Object".getBytes() );

        ParsedIOR pior = new ParsedIOR( orb.object_to_string(obj), orb, loggerMock);

        assertTrue
View Full Code Here

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

        );

        poa.the_POAManager().activate();

        // create the object reference
        poa.activate_object_with_id("Object".getBytes(), new BasicServerImpl());
        org.omg.CORBA.Object obj = poa.id_to_reference( "Object".getBytes() );

        ParsedIOR pior = new ParsedIOR( orb1.object_to_string(obj), orb1, loggerMock);

View Full Code Here

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

        );

        poa.the_POAManager().activate();

        // create the object reference
        poa.activate_object_with_id("Object".getBytes(), new BasicServerImpl());
        obj = poa.id_to_reference( "Object".getBytes() );

        ParsedIOR pior2 = new ParsedIOR( orb2.object_to_string(obj), orb1, loggerMock);

        assertTrue
View Full Code Here

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

  TypeDatabase typeDb = dbMgr.getTypeDatabase();

    // create the service type repository implementation
    RepositoryImpl typeRepos = new RepositoryImpl(typeDb, intRep);
    //typeRepos._this_object( orb );
    traderPOA.activate_object_with_id("Repository".getBytes(), typeRepos);

  // create and initialize the attributes objects
  SupportAttrib supportAttrib = new SupportAttrib();
  supportAttrib.setModifiableProperties(getProperty("jtrader.modifiable_properties", true));
  supportAttrib.setDynamicProperties(getProperty("jtrader.dynamic_properties",true));
View Full Code Here

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

  // create the trader components

  RegisterImpl reg =
      new RegisterImpl(traderComp, supportAttrib, offerDb, intRep);
    traderPOA.activate_object_with_id("Register".getBytes(), reg);
  traderComp.setRegisterInterface(RegisterHelper.narrow(traderPOA.servant_to_reference(reg)));

  LinkImpl link =
            new LinkImpl(traderComp,
                         supportAttrib,
View Full Code Here

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

  LinkImpl link =
            new LinkImpl(traderComp,
                         supportAttrib,
                         linkAttrib);

    traderPOA.activate_object_with_id("Link".getBytes(), link);
    traderComp.setLinkInterface(LinkHelper.narrow(traderPOA.servant_to_reference(link)));

  LookupImpl lookup =
            new LookupImpl(traderComp, supportAttrib,
                           importAttrib, offerDb, link,
View Full Code Here

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

  LookupImpl lookup =
            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.activate_object_with_id()


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

          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)));
 
  // write the IOR of the Lookup object (if necessary)
  if (iorfile != null) {
      try {
View Full Code Here

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

            org.jacorb.naming.NamingContextImpl.init(orb, rootPOA);
            NamingContextImpl ns = new NamingContextImpl(namingPOA);
            Configuration config = ((org.jacorb.orb.ORB) orb).getConfiguration();
            ns.configure(config); // configure the name service using the JacORB config
            byte[] rootContextId = "root".getBytes();
            namingPOA.activate_object_with_id(rootContextId, ns);
            namingService = NamingContextExtHelper.narrow(namingPOA.create_reference_with_id(rootContextId,
                    "IDL:omg.org/CosNaming/NamingContextExt:1.0"));
        } catch (Exception e) {
            throw new StartException("Failed to start the CORBA Naming Service", e);
        }
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.