Examples of NamingContextExt


Examples of org.omg.CosNaming.NamingContextExt

       
        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

Examples of org.omg.CosNaming.NamingContextExt

        this.orb = orb;
        this.poa = poa ;
       
        try
        {                       
            NamingContextExt nc =NamingContextExtHelper.narrow(orb.resolve_initial_references("NameService"));           
            e = EventChannelHelper.narrow(nc.resolve( nc.to_name("eventchannel")));
            supplierAdmin = e.for_suppliers();
            proxyPushConsumer = supplierAdmin.obtain_push_consumer();
            proxyPushConsumer.connect_push_supplier( _this(orb) );                                  
        }
        catch(Exception ex)
View Full Code Here

Examples of org.omg.CosNaming.NamingContextExt

        contexts = new Hashtable();
        timeouts = new Hashtable();

        try
        {
            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

Examples of org.omg.CosNaming.NamingContextExt

    public DomainParticipantFactoryImpl(org.omg.CORBA.ORB orb,
            org.omg.PortableServer.POA poa) {
        this.orb = orb;
        this.poa = poa;
        try {
            NamingContextExt nc = NamingContextExtHelper.narrow(orb
                    .resolve_initial_references("NameService"));
            EventChannelImpl channel = new EventChannelImpl(orb, poa);
            org.omg.CORBA.Object o = poa.servant_to_reference(channel);
            /* event channel used by event service */
            nc.rebind(nc.to_name("eventchannel"), o);
        } catch (Exception e) {

        }
        allParticipant = new Vector();
        /* thread send message for all suscriber */
 
View Full Code Here

Examples of org.omg.CosNaming.NamingContextExt

                return ref;
            org.omg.CORBA.Object objRef = orb
                    .resolve_initial_references("NameService");
            // Use NamingContextExt which is part of the Interoperable
            // Naming Service (INS) specification.
            NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);
            // get object reference from the servant (and implicitly register
            // it)
            org.omg.CORBA.Object oref = poa.servant_to_reference(impl);
            ref = org.omg.dds.DomainParticipantHelper.narrow(oref);

            if (ncRef != null) {
                // bind the Object Reference in Naming
                NameComponent path[] = ncRef.to_name(new Integer(domainId)
                        .toString());
                ncRef.rebind(path, ref);
                allParticipant.add(ref);
                Consummer.add(ref);
            }
        } catch (Exception e) {
        }
View Full Code Here

Examples of org.omg.CosNaming.NamingContextExt

            if (delete_ok) {
                org.omg.CORBA.Object objRef = orb
                        .resolve_initial_references("NameService");
                // Use NamingContextExt which is part of the Interoperable
                // Naming Service (INS) specification.
                NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);
                String id = new Integer(a_participant.get_domain_id())
                        .toString();
                NameComponent path[] = ncRef.to_name(id);
                ncRef.unbind(path);
            } else {
                return RETCODE_PRECONDITION_NOT_MET.value;
            }
        } catch (Exception e) {
            System.err.println("ERROR: " + e);
View Full Code Here

Examples of org.omg.CosNaming.NamingContextExt

        try {
            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

    {
        try
        {
            int slot_id = info.allocate_slot_id();

            NamingContextExt nc =
                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

Examples of org.omg.CosNaming.NamingContextExt

            poa.the_POAManager().activate();

            org.omg.CORBA.Object o =
                poa.servant_to_reference(new TracingServiceImpl());

            NamingContextExt nc =
                NamingContextExtHelper.narrow(orb.resolve_initial_references("NameService"));
            nc.bind( nc.to_name("tracing.service"), o);
            poa.the_POAManager().activate();
        }
        catch ( Exception e )
        {
            e.printStackTrace();
View Full Code Here

Examples of org.omg.CosNaming.NamingContextExt

      poa.the_POAManager().activate();

      org.omg.CORBA.Object o = poa.servant_to_reference(channel);

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

      String channelName = ( args.length > 0 ? args[0] : "Generic.channel" );

      nc.bind(nc.to_name( channelName  ), o);
      orb.run();
    }
    catch( Exception e )
    {
      e.printStackTrace();
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.