[omniORB] Java + Naming Service Access Problems

Rene Jager renej.frog at yucom.be
Wed Dec 10 13:49:46 GMT 2003


On Wed, 2003-12-10 at 13:12, JHJE (Jan Holst Jensen) wrote:
> > > > If you can live with Java 1.4-only, I would suggest using 
> > "-ORBInitRef
> > > > NameService=corbaname::<NSHOST>:<NSPORT>" to use an 
> > >
> > > This didn't work for us, even though we were using Java 
> > 1.4. Should it work?
> > 
> > according to the spec: yes, but in real life java it doesn't
> > object keys are not supported; what works is a corbaloc without an
> > object key (it implicitly uses "NameService")
> > all this keeps us from using JavaIDL; we use OpenORB instead
> > 
> > renej
> 
> Well, it works for us, going against out-of-the-box omniNames 4.0.0 on
> both Windows 2000 and Linux. We only use the Java 1.4 POA mapping in our
> servers and the IDL is all compiled with idlj. I suppose you use the 1.3
> BOA - don't know if that explains it, but at least that seems to be one
> difference on yours and ours setup.

we use java 1.4 (1.4.2_02 to be exact), but using a corbaloc/name like:

   corbaloc::localhost:12345/MyObjKey

doesn't work (it works without the object key, assuming "NameService");
when using:

   corbaname::localhost:12345/myObjKey#someContext/anObjName

string_to_object simply returns null and ORBtraceLevel on the server
side doesn't show any incoming message

I'm curious if/how you have corba URIs like above working

renej
> 
> FWIW
> 
> -- Jan
> 
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list




More information about the omniORB-list mailing list