Examples of resolve_initial_references()


Examples of org.omg.CORBA.ORB.resolve_initial_references()

        POA parentPOA = this.parentPOAInjector.getOptionalValue();

        // if an ORB has been injected, we will use the ORB.resolve_initial_references method to instantiate the POA.
        if (orb != null) {
            try {
                this.poa = POAHelper.narrow(orb.resolve_initial_references(this.poaName));
            } catch (Exception e) {
                throw new StartException("Failed to resolve initial reference " + this.poaName, e);
            }
        }
        // if a parent POA has been injected, we use it to create the policies and then the POA itself.
View Full Code Here

Examples of org.omg.CORBA.ORB.resolve_initial_references()

        orbProps.put("org.omg.CORBA.ORBInitialHost", orbInitialHost);
        orbProps.put("org.omg.CORBA.ORBInitialPort", orbInitialPort);
        ORB orb = ORB.init(new String[0], orbProps);

        // Find the object
        NamingContext root = NamingContextHelper.narrow(orb.resolve_initial_references("NameService"));
        NameComponent nc = new NameComponent(nameId, nameKind);
        NameComponent[] ncs = {nc};
        org.omg.CORBA.Object corbaObject = root.resolve(ncs);

        Class helperClass = ClassUtils.forName(helperClassName);
View Full Code Here

Examples of org.omg.CORBA.ORB.resolve_initial_references()

        description = DESCRIPTIONS[kind-1]

        try
       
            ORB        orb     = org.omg.CORBA.ORB.init(args, null);
            POA        rootPOA = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
            POAManager poaMgr  = rootPOA.the_POAManager();
       
            // create a user defined poa for the foo factory

            org.omg.CORBA.Policy [] policies =
View Full Code Here

Examples of org.omg.CORBA.ORB.resolve_initial_references()

            FooFactoryImpl factoryServant = new FooFactoryImpl();
            factoryPOA.activate_object_with_id( new String("FooFactory").getBytes(), factoryServant );
     
            // register factory on name service
            NamingContextExt nc =
                NamingContextExtHelper.narrow(orb.resolve_initial_references("NameService"));

            nc.bind( nc.to_name("FooFactory.service") , factoryServant._this(orb) );

            // activate the poa manager
            poaMgr.activate();
View Full Code Here

Examples of org.omg.CORBA.ORB.resolve_initial_references()

    public static void main(String[] args)
    {
        try
        {     
            ORB        orb     = org.omg.CORBA.ORB.init(args, null);
            POA        rootPOA = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
            POAManager poaMgr  = rootPOA.the_POAManager();

            FooFactoryImpl servant   = new FooFactoryImpl();
            FooFactory     reference = servant._this(orb);
View Full Code Here

Examples of org.omg.CORBA.ORB.resolve_initial_references()

            PrintWriter pw = new PrintWriter(new FileWriter("../fooFactory.ior"));
            pw.println(orb.object_to_string(reference));
            pw.close();
            */
            // CORBA compliant:     
            NamingContextExt nc = NamingContextExtHelper.narrow(orb.resolve_initial_references("NameService"));
            NameComponent [] name = new NameComponent[1];
            name[0] = new NameComponent("FooFactory", "service");
            nc.bind(name, reference);

            poaMgr.activate();
View Full Code Here

Examples of org.omg.CORBA.ORB.resolve_initial_references()

        // CORBA initialisierung
        try {
            ORB _orb = ORB.init(args, null);

            POA _poa =
                POAHelper.narrow(_orb.resolve_initial_references("RootPOA"));

            NamingContext nc =
                NamingContextHelper.narrow(_orb.resolve_initial_references("NameService"));

            EventChannelFactory _factory;
View Full Code Here

Examples of org.omg.CORBA.ORB.resolve_initial_references()

            POA _poa =
                POAHelper.narrow(_orb.resolve_initial_references("RootPOA"));

            NamingContext nc =
                NamingContextHelper.narrow(_orb.resolve_initial_references("NameService"));

            EventChannelFactory _factory;
            if (args != null && args.length == 1) {
                _factory =
                    EventChannelFactoryHelper.narrow(_orb.string_to_object(args[0]));
View Full Code Here

Examples of org.omg.CORBA.ORB.resolve_initial_references()

            EventChannelFactory _factory;
            if (args != null && args.length == 1) {
                _factory =
                    EventChannelFactoryHelper.narrow(_orb.string_to_object(args[0]));
            } else {
                _factory = EventChannelFactoryHelper.narrow(_orb.resolve_initial_references("NotificationService"));
            }

            org.omg.CORBA.Object cob =
                _poa.servant_to_reference(new WhiteBoardFactory(_orb, _poa, _factory));
View Full Code Here

Examples of org.omg.CORBA.ORB.resolve_initial_references()

    public static void main (String[] args) {
        ORB _orb = ORB.init(args, null);
        try {
            // CORBA stuff
            POA _poa = POAHelper.narrow(_orb.resolve_initial_references("RootPOA"));

            NamingContext nc =
                NamingContextHelper.narrow(_orb.resolve_initial_references("NameService"));

            NameComponent [] name = new NameComponent[1];
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.