> SITUATION. Two machines with JacORB: each runs a servant of mine.
>
[quoted text clipped - 4 lines]
> best, I get two separate corba "domains" (say, the two servants can't
> see each other).
Hi,
you should run a single name server somewhere, say on one of
your two machines. In your JacORB properties file, you would
configure the ORB that is colocated with your name server like
this
ORBInitRef.NameService=file:/c:/NS_Ref
If your hosts share a file system, you can use a sharde file with
the name server's IOR, of course. If not, then write
ORBInitRef.NameService=corbaloc::hostname:port/NameService
on the other host.
Cheers, Gerald.

Signature
Dr. Gerald Brose mailto:brose@xtradyne.com
Xtradyne Technologies http://www.xtradyne.com
Schoenhauser Allee 6-7, Phone: +49-30-440 306-27
D-10119 Berlin, Germany Fax : +49-30-440 306-78
Maurizio Fuschetto - 07 May 2004 13:14 GMT
Thanks for your answer.
The JacORB manual reports quitte the same recommendations.
I tried again after reading your post, and I found that I was wrong
with the port number.
Thank you!
> > SITUATION. Two machines with JacORB: each runs a servant of mine.
> >
[quoted text clipped - 22 lines]
>
> Cheers, Gerald.
Why are you running 2 instances of the Name Service? One instance
is all you need. You simply need to ensure that both servers reference
the same Name Service:
set ORB=-Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB
-Dorg.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingleton
set NAME_SERVICE=-ORBInitRef.NameService=corbaloc::localhost:38693/StandardNS/NameServer-POA/_root
rem start Name Service
start java %ORB% org.jacorb.naming.NameServer -p 38693
rem start server 1
start java %ORB% CountServer1 %NAME_SERVICE%
rem start server 2 on second machine using same InitRef
start java %ORB% CountServer2 %NAME_SERVICE%
Mark
> Hi everybody,
>
[quoted text clipped - 11 lines]
>
> Thankyou.