_narrow() is a standard call, and doesn't tie you to a particular vendor.
_narrow() is generated for all interfaces by the IDL compiler, and is a
compliant way to handle this (though using stringified IORs is a little
This will all work when JDK 1.3 supports the interoperable naming service.
When that will be, I have no idea. It depends on how motivated Sun is to
fix it. They're not exactly on the cutting edge (is the idl to java
compiler out of beta where it's been for about 2 years?) so I wouldn't
anticipate it too hotly. There are plenty of other ORBs (Orbix 2000 for
Java, Orbacus 4.0.1 for Java, Visibroker 4.0 for Java) which support the INS
and will work with Orbix 2000 without the stringified IOR stuff. Depends on
whether you're writing a production app or not. If you are, you might want
to consider something besides the JDK ORB.
> Bill, lots of thanks. You got me going...
> However, the fact that jdk1.3 does not support IONS is most
> frustrating. Is there any info on why and when such support would be
> provided. I don't want to reply on IORs. In addition, I have to use
> IONA's _narrow() implementation which ties me to IONA on the client
> side and I want to avoid that also.
> Thanks again,
> > JDK 1.3 does not support the interoperable naming service. Take the
> IOR of
> > IONA's NS (it's in the config file) and hardcode it into your client,
> > then _narrow() it. So long as you don't uninstall Orbix 2000, the
> IOR won't
> > change.
> > -B
> > > Folks,
> > > I am trying to get a simple HelloWorld app.
> > > working using C++/CORBA server running in
> > > Orbix2000 ORB on Solaris and Java (jdk1.3) client
> > > running in NT.
> > > resolve_initial_references("NameService") throws
> > > OBJECT_NOT_EXIST exception. Is there anything
> > > that I need to run on the client side? BTW,
> > > list_initial_services() also throws the same
> > > exception. So, what object is supposed to exist
> > > and where?
> > > bellow is the java code snippet.
> > > thanks,
> > > vadim
> > > Properties props = new Properties();
> > > props.put("org.omg.CORBA.ORBInitialPort", "4700");
> > > props.put
> > > ("org.omg.CORBA.ORBInitialHost", "192.168.100.36")
> > > ;
> > > ORB orb = ORB.init(args, props);
> > > org.omg.CORBA.Object obj =
> > > orb.resolve_initial_references("NameService");
> > > Sent via Deja.com http://www.deja.com/
> > > Before you buy.
> Sent via Deja.com http://www.deja.com/
> Before you buy.