Package org.omg.CosNaming

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


        try
        {                      
            this.orb = orb;
            this.poa = poa;
            NamingContextExt nc =  NamingContextExtHelper.narrow(orb.resolve_initial_references("NameService"));
            ecs = EventChannelHelper.narrow(nc.resolve(nc.to_name("eventchannel")));
        }
        catch(Exception e)
        {
            e.printStackTrace();
        }
View Full Code Here


                NamingContextExtHelper.narrow(
                     info.resolve_initial_references("NameService"));

            TracingService tracer =
                TracingServiceHelper.narrow(
                    nc.resolve( nc.to_name("tracing.service")));


            if( tracer == null )
            {
                System.err.println("No Tracing Service, cannot register tracer interceptor!");
View Full Code Here

            Parameter iorString = service.getParameter(IOR_STRING);

            if (namingServiceUrl!=null && objectName!=null) {
                obj = orb.string_to_object(((String) namingServiceUrl.getValue()).trim());
                NamingContextExt nc = NamingContextExtHelper.narrow(obj);
                obj = nc.resolve(nc.to_name(((String) objectName.getValue()).trim()));
            } else if (iorFilePath!=null) {
                FileReader fileReader = new FileReader(((String) iorFilePath.getValue()).trim());
                char[] buf = new char[1000];
                fileReader.read(buf);
                obj = orb.string_to_object((new String(buf)).trim());
View Full Code Here

                new NameComponent[nc.length-1];

            for( int i = 1; i < nc.length; i++)
                nc_prime[i-1] = nc[i];

            return next_context.resolve(nc_prime);
        }
        else
        {
            org.omg.CORBA.Object result = null;
View Full Code Here

  {
      for (int i = 1; i < length; i++)
      {
    node = (DefaultMutableTreeNode)path.getPathComponent(i);
    ContextNode bind = (ContextNode)node.getUserObject();
    context = NamingContextExtHelper.narrow(context.resolve(bind.getName()));
    if( context == null )
    {
        System.err.println("Naming context narrow failed!");
        System.exit(1);
    }
View Full Code Here

  {
      for (int i = 1;i<length;i++)
      {
    node = (DefaultMutableTreeNode) path.getPathComponent(i);
    ContextNode bind = (ContextNode) node.getUserObject();
    context = NamingContextExtHelper.narrow( context.resolve( bind.getName()));
    if( context == null )
    {
        System.err.println("Naming context narrow failed!");
        System.exit(1);
    }
View Full Code Here

      {
    for (int i = 1; i < length-1; i++)
    {
        node = (DefaultMutableTreeNode)path.getPathComponent(i);
        ContextNode bind = (ContextNode)node.getUserObject();
        context = NamingContextExtHelper.narrow(context.resolve(bind.getName()));
    }
      }

      if (length > 0)
      {
View Full Code Here

            // the server, and the activate the object on the real one.
            org.omg.CORBA.Object ref = nssORB.string_to_object(nsURI.toString());
            NamingContextExt ic = NamingContextExtHelper.narrow(ref);

            NameComponent[] nameComponent = ic.to_name(name);
            org.omg.CORBA.Object bean = ic.resolve(nameComponent);

            //Install the client interceptors
            String beanIOR = nssORB.object_to_string(bean);
            bean = cssORB.string_to_object(beanIOR);
View Full Code Here

        {
            NamingContextExt nc =
                NamingContextExtHelper.narrow(orb.resolve_initial_references("NameService"));
            NameComponent [] name = new NameComponent[1];
            name[0] = new NameComponent( "TransactionService", "service");
            factory = TransactionFactoryHelper.narrow(nc.resolve(name));   
        }
        catch (Exception e)
        {
            if (logger.isErrorEnabled())
                logger.error("Unable to obtain Transaction Service reference. Giving up.", e );
View Full Code Here

            // the server, and the activate the object on the real one.
            org.omg.CORBA.Object ref = nssORB.string_to_object(nsURI.toString());
            NamingContextExt ic = NamingContextExtHelper.narrow(ref);

            NameComponent[] nameComponent = ic.to_name(name);
            org.omg.CORBA.Object bean = ic.resolve(nameComponent);

            // Ok, now we have an object reference from the naming service, but we need to
            // activate that object on the cssORB instance before we hand it out.  Activating it
            // on the cssORB will ensure that all of the interceptors and policies we define on the
            // cssORB will get used for all requests involving this bean.
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.