Examples of resolve_initial_references()


Examples of com.sun.corba.se.spi.orb.ORB.resolve_initial_references()

        orb.setLocalResolver( sres ) ;

        try {
            // This causes the acceptors to start listening.
            orb.resolve_initial_references(ORBConstants.ROOT_POA_NAME);
        } catch (org.omg.CORBA.ORBPackage.InvalidName e) {
            RuntimeException rte = new RuntimeException("This should not happen");
            rte.initCause(e);
            throw rte;
        }
View Full Code Here

Examples of com.sun.corba.se.spi.orb.ORB.resolve_initial_references()

        orb.setLocalResolver( sres ) ;

        try {
            // This causes the acceptors to start listening.
            orb.resolve_initial_references(ORBConstants.ROOT_POA_NAME);
        } catch (org.omg.CORBA.ORBPackage.InvalidName e) {
            RuntimeException rte = new RuntimeException("This should not happen");
            rte.initCause(e);
            throw rte;
        }
View Full Code Here

Examples of org.jacorb.orb.ORB.resolve_initial_references()

        try
        {
            ORB orb = (ORB) org.omg.CORBA.ORB.init( args, null );
            org.omg.CORBA.Repository ir =
                org.omg.CORBA.RepositoryHelper.narrow( orb.resolve_initial_references( "InterfaceRepository"));

            Logger logger = orb.getConfiguration().getLogger("jacorb.ir");

            if( ir == null )
            {
View Full Code Here

Examples of org.jacorb.orb.ORB.resolve_initial_references()

        try
        {
            ORB orb = (ORB) org.omg.CORBA.ORB.init( args, null );
            org.omg.CORBA.Repository ir =
                org.omg.CORBA.RepositoryHelper.narrow( orb.resolve_initial_references( "InterfaceRepository"));

            Logger logger = orb.getConfiguration().getNamedLogger("jacorb.ir");

            if( ir == null )
            {
View Full Code Here

Examples of org.jacorb.orb.ORBSingleton.resolve_initial_references()

            // ok
        }

        try
        {
            orbs.resolve_initial_references("");
            fail ("should have raised NO_IMPLEMENT");
        }
        catch (org.omg.CORBA.NO_IMPLEMENT ex)
        {
            // ok
View Full Code Here

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

      for (int ii=0; ii<20; ii++) {
         System.out.println("Hit a key for ORB #" + ii + "/20");
         try { System.in.read(); } catch(java.io.IOException e) {}
         ORB orb = OrbInstanceFactory.createOrbInstance(glob, new String[0], null, new CallbackAddress(glob));
         try {
            POA rootPOA = org.omg.PortableServer.POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
            rootPOA.the_POAManager().activate();
         }
         catch (Throwable e) {
            e.printStackTrace();
            System.out.println("ERROR: " + e.toString());
View Full Code Here

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

  public static void main(String[] args) throws Exception {
    // Initialize ORB
    ORB orb = ORB.init(new String[0], null);
    System.out.println("ORB: " + orb.getClass().getName());
   
    POA rootPoa = (POA) orb.resolve_initial_references("RootPOA");
   
    // Create a POA
    Policy[] tpolicy = new Policy[3];
    tpolicy[0] = rootPoa.create_lifespan_policy(
        LifespanPolicyValue.TRANSIENT );
View Full Code Here

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

        ORB orb = ORB.init( ref, null );

        System.out.println( "corbaloc = " + ref[1] );
        System.out.println( "orb = " + orb );

        org.omg.CORBA.Object obj = orb.resolve_initial_references( name );
        System.out.println( "obj = " + obj );

        Add a = AddHelper.narrow( obj );
        System.out.println( "a = " + a );
View Full Code Here

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

        String name = "NameService";
        String ref[] = { "-ORBInitRef", getCORBALoc(name) };

        ORB orb = ORB.init( ref, null );

        NamingContext nctx = NamingContextHelper.narrow( orb.resolve_initial_references(name) );
        System.out.println( "nctx = " + nctx );

        if (nctx != null)
        {
            //NameComponent nc = new NameComponent( "RMI:mark.comps.Add:0000000000000000", "mark.comps.Add" );
View Full Code Here

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 JacORBMessages.MESSAGES.errorResolvingInitRef(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
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.