[omniORB] Initiating orbs in multiple environments.

Robert Summerlin robert.summerlin at us.solution6.com
Fri Oct 17 15:01:29 BST 2003


Thanks for the clarification!
This really helps!

-----Original Message-----
From: Duncan Grisby [mailto:duncan at grisby.org]
Sent: Friday, October 17, 2003 12:58 PM
To: Robert Summerlin
Cc: omniorb-list at omniorb-support.com; robert_summerlin at bellsouth.net
Subject: Re: [omniORB] Initiating orbs in multiple environments. 


On Thursday 9 October, "Robert Summerlin" wrote:

> I am attempting to initialize 3 orbs ( which will reside on three
> separate ,i.e, dev08:2809, dev10:2809, dev11:2809) using the below
> code segment.  Server names and port combinations are passed from
> the arrayList.  My code is compiling successfully however during
> run-time only the first orb is working properly.

I think you're confused by your terminology. I think you mean that you
are starting three servers on three different machines, and each
machine is running omniNames. Then you're trying to contact the three
servers via the three name services, from a single client.

The problem you have is that the ORB is a singleton, so you can't
initialise more than one. That's why you can only contact your first
object. The correct thing to do is to initialise a single ORB without
bothering to configure a name service. Then, give the three name
service references as corbaname URIs to orb->string_to_object.

Aside from that, it is usual to run just one naming service, and have
all your servers register themselves in that.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --

_________________________
visit <http://www.solution6.com>
This email message (and attachments) may contain information that is confidential to Solution 6.
If you are not the intended recipient you cannot use, distribute or copy the message or attachments.
In such a case, please notify the sender by return email immediately and erase all copies of the message and attachments.
Opinions, conclusions and other information in this message and attachments that do not relate to the official business of Solution 6 are neither given nor endorsed by it.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20031017/9ec28f55/attachment.htm


More information about the omniORB-list mailing list