Discussion:
[omniORB] Parallel use of different namespaces
EntonH
2008-07-11 12:22:26 UTC
Permalink
Hello omniORB-Community,

is it possible to use different nameservices to work simultaneously with
different projects?
e.g. Project 1 uses NameService1
Project 2 uses NameService2
How do I initialize the nameservices and connect objects to them?

I read about this topic in the manual of omniORB but could not find an
example how to deal with it.

Greetings
EntonH
--
View this message in context: http://www.nabble.com/Parallel-use-of-different-namespaces-tp18397476p18397476.html
Sent from the OmniORB - User mailing list archive at Nabble.com.
Stefan Naewe
2008-07-11 12:35:33 UTC
Permalink
Post by EntonH
Hello omniORB-Community,
is it possible to use different nameservices to work simultaneously with
different projects?
e.g. Project 1 uses NameService1
Project 2 uses NameService2
How do I initialize the nameservices and connect objects to them?
I read about this topic in the manual of omniORB but could not find an
example how to deal with it.
Please define the term "Project".

S.
--
----------------------------------------------------------------
Dipl.-Inform. Stefan Naewe ATLAS Elektronik GmbH
Dept.: PTA5 3
phone: +49-(0)421-457-1378 Sebaldsbruecker Heerstr. 235
fax: +49-(0)421-457-3913 28305 Bremen
----------------------------------------------------------------
/dev/random says: This tagl ineh asto oman yfou rlet terw ords.
entonh at gmx.de ()
2008-07-11 16:46:43 UTC
Permalink
Let's say: Two different applications :-)

-------- Original-Nachricht --------
Datum: Fri, 11 Jul 2008 08:35:16 +0200
Betreff: Re: [omniORB] Parallel use of different namespaces
Post by EntonH
Hello omniORB-Community,
is it possible to use different nameservices to work simultaneously with
different projects?
e.g. Project 1 uses NameService1
Project 2 uses NameService2
How do I initialize the nameservices and connect objects to them?
I read about this topic in the manual of omniORB but could not find an
example how to deal with it.
Please define the term "Project".
S.
--
----------------------------------------------------------------
Dipl.-Inform. Stefan Naewe ATLAS Elektronik GmbH
Dept.: PTA5 3
phone: +49-(0)421-457-1378 Sebaldsbruecker Heerstr. 235
fax: +49-(0)421-457-3913 28305 Bremen
----------------------------------------------------------------
/dev/random says: This tagl ineh asto oman yfou rlet terw ords.
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=***@gmx
Clarke Brunt
2008-07-11 21:59:44 UTC
Permalink
Post by EntonH
is it possible to use different nameservices to work simultaneously with
different projects?
e.g. Project 1 uses NameService1
Project 2 uses NameService2
How do I initialize the nameservices and connect objects to them?
If the different name services are running on different machines, then
just start them as normal, and point applications at them using
orbInitRef or whatever as usual.

If more than one name service was on the same machine, then obviously
they can't all listen on the default port 2809, so you'd need to start
them listening on different ports. With omninames, this appears to be
the -port command line option, or alternatives involving orbEndPoint.
Again point apps at them using different InitRef settings.

Don't take my word on the precise spelling of the options above - I've
not done it myself, and haven't checked, so read the docs about them.

Perhaps I'm missing something. I can't see the problem. There's nothing
'special' about the name service - it's just another CORBA server, like
ones you could have written yourself. Except of course that apps need to
be able to find it before they can use it to look up other things.

--

Clarke Brunt
TRAFFICMASTER PLC
UNIT 22 / ST. JOHN'S INNOVATION CENTRE
COWLEY ROAD / CAMBRIDGE / CB4 0WS
T: 01223 422469
F:
E: ***@trafficmaster.co.uk


Please consider the environment before printing this email. --------------------------------------------------------

Trafficmaster PLC is a limited Company registered in England and Wales.
Registered number: 2292714 Registered office: Martell House, University Way, Cranfield, BEDS. MK43 0TR

This message (and any associated files) is intended only for the use of omniorb-***@omniorb-support.com and may contain information that is confidential, subject to copyright or constitutes a trade secret. If you are not omniorb-***@omniorb-support.com you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message and deleting it from your computer. Any views or opinions presented are solely those of the author ***@trafficmaster.co.uk and do not necessarily represent those of the company.

Warning: Although the company has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments.
--------------------------------------------------------
Martin Trappel
2008-07-14 12:24:08 UTC
Permalink
Post by EntonH
Hello omniORB-Community,
is it possible to use different nameservices to work simultaneously with
different projects?
e.g. Project 1 uses NameService1
Project 2 uses NameService2
How do I initialize the nameservices and connect objects to them?
I read about this topic in the manual of omniORB but could not find an
example how to deal with it.
You can resolve a NamingService via a corbaloc URL. This way you can
have even the same application resolve several different nameservices.

So instead of resolve_initial_references() you could use
ORB_var->string_to_object("corbaloc:rir:/NameService") (rir mean resolve
initial references) for the omniORB configured nameservice.
For any other nameservice you might want to use:
ORB_var->string_to_object("corbaloc:[iiop]:<host>[:port]/NameService"


br,
Martin

Loading...