Examples of resolve_str()


Examples of org.omg.CosNaming.NamingContextExt.resolve_str()

            if( StringifiedName == null ) {
                // This means return the Root Naming context
                return theNamingContext;
            } else {
                return theNamingContext.resolve_str( StringifiedName );
            }
        } catch( Exception e ) {
            clearRootNamingContextCache( );
            return null;
        }
View Full Code Here

Examples of org.omg.CosNaming.NamingContextExt.resolve_str()

        {
            org.omg.CORBA.Object objRef = orb.resolve_initial_references ("NameService");
            // Use NamingContextExt instead of NamingContext. This is
            // part of the Interoperable naming Service.
            NamingContextExt ncRef = NamingContextExtHelper.narrow (objRef);
            ref = DomainParticipantHelper.narrow (ncRef.resolve_str (new Integer (domainId).toString ()));
        }

        catch (Exception e)
        {
            System.err.println ("ERROR: " + e);
View Full Code Here

Examples of org.omg.CosNaming.NamingContextExt.resolve_str()

            tab[0] = 1;
            org.omg.dds.UserDataQosPolicy UDQP = new UserDataQosPolicy(tab);
            DomainParticipantQos DPQOS = new DomainParticipantQos(UDQP,
                    new EntityFactoryQosPolicy());
            domainparticipantFactory = DomainParticipantFactoryHelper
                    .narrow(ncRef.resolve_str(rname));
            TopicQos tq = new TopicQos(
                    new TopicDataQosPolicy(tab),
                    new DurabilityQosPolicy(
                            DurabilityQosPolicyKind.from_int(0),
                            new Duration_t(0, 0)),
View Full Code Here

Examples of org.omg.CosNaming.NamingContextExt.resolve_str()

            IOR ior = null;
            // If the name hasn't been set - which is possible if we're just
            // resolving the root context down try to use name.
            if (name.length() > 0)
            {
                org.omg.CORBA.Object target = n.resolve_str(name);
                ior =
                    ((Delegate) ((org.omg.CORBA.portable.ObjectImpl)target)
                        ._get_delegate())
                        .getIOR();
            }
View Full Code Here

Examples of org.omg.CosNaming.NamingContextExt.resolve_str()

            byte tab[ ] = new byte [1];
            tab[0] = 1 ;
            UserDataQosPolicy UDQP  = new UserDataQosPolicy(tab);
            DomainParticipantQos DPQOS =
                new DomainParticipantQos(UDQP,new EntityFactoryQosPolicy()) ;
            domainparticipantFactory = DomainParticipantFactoryHelper.narrow(ncRef.resolve_str(rname));

            TopicQos tq =  new TopicQos(
                new TopicDataQosPolicy(tab),
                new DurabilityQosPolicy(
                    DurabilityQosPolicyKind.from_int(0),
View Full Code Here

Examples of org.omg.CosNaming.NamingContextExt.resolve_str()

            try
            {
                NamingContextExt nc =
                NamingContextExtHelper.narrow(orb.resolve_initial_references("NameService"));

                nc.resolve_str("ServantScaling/SessionFactory");
            }
            catch (Exception e)
            {
            }
            ///
View Full Code Here

Examples of org.omg.CosNaming.NamingContextExt.resolve_str()

        Object result = null;
        try {
            CorbanameURL url = new CorbanameURL(uri);
            ORB orb = createORB(url.getHost(), url.getPort(), false);
            NamingContextExt context = getNamingContext(orb, url.getNameService());
            result = context.resolve_str(url.getName());
        } catch (Exception e) {
            handleException(e);
        }
        if (result == null) {
            throw new CorbaHostException(CorbaHostException.NO_SUCH_OBJECT);
View Full Code Here

Examples of org.omg.CosNaming.NamingContextExt.resolve_str()

    public Object lookup(String uri) throws CorbaHostException {
        Object result = null;
        try {
            CorbanameURL url = new CorbanameURL(uri);
            NamingContextExt context = getNamingContext(url.getNameService());
            result = context.resolve_str(url.getName());
        } catch (Exception e) {
            // e.printStackTrace();
            handleException(e);
        }
        if (result == null) {
View Full Code Here

Examples of org.omg.CosNaming.NamingContextExt.resolve_str()

      // part of the Interoperable naming Service.
      NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);

      // Resolve the Object Reference in Naming.
      String name = "Image";
      serverImpl = IImageHelper.narrow(ncRef.resolve_str(name));

      String fileName = args[1];
      String receivedFileName = args[1] + ".bak";

      long beforeRCTime = System.currentTimeMillis();
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.