jbossContext.rebind(ncx, obj); else NamingContextExtHelper.narrow(context).rebind(ncx, obj);
public void exportObjectReferenceToNamingService(ORB orb, org.omg.CORBA.Object ref, String location) { int idx = location.indexOf("#"); String name = location.substring(idx + 1); //Register in NameService try { org.omg.CORBA.Object nsObj = orb.resolve_initial_references("NameService"); NamingContextExt rootContext = NamingContextExtHelper.narrow(nsObj); NameComponent[] nc = rootContext.to_name(name); rootContext.rebind(nc, ref); } catch (Exception ex) { throw new CorbaBindingException(ex); } } public void exportObjectReferenceToCorbaloc(ORB orb,
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 */ Consummer = new ThreadSubscriber (orb, poa); Consummer.start (); }
ncRef.rebind (path, ref); allParticipant.add (ref); Consummer.add (ref);
if( nce == null ) throw new CannotProceed(); nce.rebind(ncx,obj);
jbossContext.rebind(ncx, obj); else NamingContextExtHelper.narrow(context).rebind(ncx, obj);
jbossContext.rebind(ncx, obj); else NamingContextExtHelper.narrow(context).rebind(ncx, obj);