Package org.omg.CORBA

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


        }

        try
        {
            ORB orb = ORB.init( args, null );
            POA poa = (POA) orb.resolve_initial_references( "RootPOA" );
            poa.the_POAManager().activate();
            org.omg.CORBA.Object demo = poa.servant_to_reference( new Server( orb ));
            PrintWriter pw = new PrintWriter( new FileWriter( args[ 0 ] ));
            pw.println( orb.object_to_string( demo ));
            pw.flush();
View Full Code Here


        }

        try {
            // initialize the ORB and POA.
            ORB orb = ORB.init(args, null);
            POA rootPOA = (POA) orb.resolve_initial_references("RootPOA");
            org.omg.CORBA.Policy [] policies = new org.omg.CORBA.Policy[3];
            policies[0] = rootPOA.create_id_assignment_policy(IdAssignmentPolicyValue.USER_ID);
            policies[1] = rootPOA.create_lifespan_policy(LifespanPolicyValue.PERSISTENT);
            Any sasAny = orb.create_any();
            SASPolicyValuesHelper.insert( sasAny, new SASPolicyValues(EstablishTrustInClient.value, EstablishTrustInClient.value, true) );
View Full Code Here

            ri.forward_reference() == null)
        {
            try
            {
                ORB orb =  ((ClientRequestInfoImpl)ri).orb;
                RTORB rtorb = RTORBHelper.narrow(orb.resolve_initial_references("RTORB"));

                Protocol wiop = new Protocol();

                // This is WIOP protocol value from WIOPFactories.
                wiop.protocol_type = 7;
View Full Code Here

    {
        try
        {
            ORB orb = (ORB) container.getComponentInstance(ORB.class);

            Repository repository = RepositoryHelper.narrow(orb.resolve_initial_references("InterfaceRepository"));

            return repository;
        }
        catch (InvalidName e)
        {
View Full Code Here

    public void setUpTest() throws Exception
    {
        ORB orb = getORB();

        factory = EventChannelFactoryHelper.narrow(orb
                .resolve_initial_references("NotificationService"));

        intHolder = new IntHolder();

        channel = factory.create_channel(new Property[0], new Property[0], intHolder);
View Full Code Here

    }

    private void testORB() throws InvalidName
    {
        ORB orb = newORB(args);
        BasicServer server = BasicServerHelper.narrow(orb.resolve_initial_references("BasicServer"));
        assertFalse(server.bounce_boolean(false));
    }

    public void testORBDefaultInitRef() throws Exception
    {
View Full Code Here

        ORB myorb = ORB.init((String[])null, server_props);

        try
        {
            org.omg.CORBA.Object poa_obj =
                myorb.resolve_initial_references("RootPOA");
            POA root_poa = POAHelper.narrow(poa_obj);
            POAManager pm = root_poa.the_POAManager();
            SampleImpl servant = new SampleImpl();
            root_poa.activate_object(servant);
            pm.activate();
View Full Code Here

    }

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

        _poa.the_POAManager().activate();

        EchoServerImpl _server = new EchoServerImpl();
View Full Code Here

            //init ORB
            ORB orb = ORB.init( args, null );

            //init POA
            POA rootPoa =
                POAHelper.narrow( orb.resolve_initial_references( "RootPOA" ));
            rootPoa.the_POAManager().activate();

            // create POA
            Policy policies[] = new Policy[2];
            policies[0] = rootPoa.create_id_uniqueness_policy(
View Full Code Here

        //init ORB
        ORB serverOrb = ORB.init( args, null );

        //init POA
        POA rootPoa =
            POAHelper.narrow( serverOrb.resolve_initial_references( "RootPOA" ));
        rootPoa.the_POAManager().activate();

        // create POA
        Policy policies[] = new Policy[2];
        policies[0] = rootPoa.create_id_uniqueness_policy(
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.