Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / CORBA / May 2004

Tip: Looking for answers? Try searching our database.

Question about Naming Service

Thread view: 
Maurizio Fuschetto - 05 May 2004 15:36 GMT
Hi everybody,

SITUATION. Two machines with JacORB: each runs a servant of mine.

PROBLEM. I need the two servants to share the same Corba NameServer so
that they can interact.

I tried to run the JacORB naming service on both machines but, at my
best, I get two separate corba "domains" (say, the two servants can't
see each other).

Any tips or documentation or demos about it?
I would appreciate anything, even if from other ORBs.

Thankyou.
Gerald Brose - 06 May 2004 09:40 GMT
> 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.
Mark Woyna - 06 May 2004 14:26 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.