[omniORB] Java + Naming Service Access Problems
Anthony Schlemmer
aschlemm at comcast.net
Wed Dec 10 23:16:46 GMT 2003
I went through this a couple of days ago while I was trying to get rid
of jacORB and standardize on "omniNames" for both our C++ and Java
services. I just followed the answer from chapter 2 in the omniORB FAQ.
I gave all of our Java clients the -ORBInitialHost and -ORBInitialPort
arguments and I set the "supportBootstrapAgent" parameter to true "1"
in our configuration. With those changes in place our JavaIDL clients
connected right up with "omniNames".
Tony
On Wednesday 10 December 2003 06:54 am, Thomas Soddemann wrote:
> Tingle, Alex wrote:
> >Thomas wrote:
> >>we have the same problem, so we choose to use the jacORB
> >>naming service instead of omninames, as a work around ;)
> >
> >I don't see how you can fix the problem by using a different naming
> > service - the problem lies with the Java client...
> >
> >
> >
> >Thomas, are you reporting success with corbaname-style
> > initialisation, or are you using InitialHost & InitialPort?
> >
> >-Alex
>
> Hi again,
>
> the corbaname-style initialisation works for clients if I use jacORB
> with the jacORB naming service. The server components are implemented
> in C++ with omniORB or are java servers making use of jacORB.
>
> The line for jacorb.properties looks like
>
> ORBInitRef.NameService=corbaloc::<jacorb nameservice host>:3528
>
> for a jacorb name service configured with JBoss. The exact same thing
> did not work in the
> case where the host was running omninames. In that case only omniORB
> clients could resolve names successfully.
>
> Btw. you have to use org.omg.CosNaming.NamingContextExt to be
> successful.
>
> Cheers,
> Thomas
>
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
--
Anthony Schlemmer
aschlemm at comcast.net
More information about the omniORB-list
mailing list