🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.object.corba
Article #58

Re: Bind question on visibroker 4.5.1

#58
From: Morris Luk
Date: Tue, 13 Aug 2002 13:11
54 lines
4087 bytes
davisglynne@hotmail.com (Glynne Davis) wrote in message news:<2a88fc0b.0208120359.102536b2@posting.google.com>...
> > I used ORBagentAddr in the java.util.Properties
> > for ORB.init() and I had the services running on two different
> > machines using the same port number.  I found that sometimes I bind to
> > machine A while sometimes I bind to machine B.  The service names on
> > both machines are the same but the logic of them are different so that
> > I can differentiate.
> >
> 
> Surely you need to differentiate between communicating with osagents
> and communicating with the CORBA objects themselves. The ORBagentAddr
> can be used to specify that a VisiBroker process communicates with an
> osagent on a particular host (communicate directly with that agent
> using p2p UDP instead of finding an agent using UDP broadcast) but
> that doesn't say anything about the IORs that the agent will return.
> 
> If you run only one agent, then you will definitely round-robin
> between the two services. For example, ORBagentAddr points to an
> osagent on machine A. The osagent on this host holds references to
> services with identical names and repIds on machines A and B. Each
> time a reference is requested, it gives out A, B, A, B etc.
> 
> If you run an osagent on both hosts, then you might get what you need,
> but that is less predictable (depends on startup order, network
> latencies etc.) If the service on A is registered with an osagent on
> A, the service on B is registered with an osagent on B, pointing
> ORBagentAddr to the particular host will give you the server you need.

This is exactly my question because it did not give me the server I
need sometimes.  I felt surprised.  This seems unanswered still.


> 
> However, why register these 2 instances of the service with the
> osagent under identical names if you want to distinguish between them?
> Why not just register them with different names, and bind to the name
> you want? When you do a "bind" you also have the option of specifying
> that you want a reference to an object on a particular host (see the
> overloaded versions of "bind" that allow you to specify a host address
> and BindOptions).

Maybe I did not mention clear enough about the whole picture.  This
was just a testing.  The reason for do this testing was because one
day, a developer by mistake started her osagent with the services
having the same names as in production environment using the
production port number on her local machine.  This caused issues on
production because sometimes it talked to the correct production
osagent but sometimes it talked to the osagent on her machine which
did not have production logic.  Until that happened, we thought that
by using ORBagentAddr, we can always talk to just a particular
osagent.  This seemed to be not true.  So I'm just wondering if this
is a know bug in visibroker.  Or I have missed something.

Thanks.
Technical Details
Message-ID: <e3ccc19b.0208130511.62844c2d@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <e3ccc19b.0208051335.7da57d33@posting.google.com> <2a88fc0b.0208120359.102536b2@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10661c,d3b1b487ac25ffcc
X-Google-Attributes: gid10661c,public
X-Google-Thread: 109156,d3b1b487ac25ffcc
X-Google-Attributes: gid109156,public
X-Google-Thread: f753e,d3b1b487ac25ffcc
X-Google-Attributes: gidf753e,public
X-Google-ArrivalTime: 2002-08-13 06:11:16 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: morris_luk@my-deja.com (Morris Luk)
Newsgroups: comp.object.corba,inprise.public.visibroker,borland.public.visibroker
Subject: Re: Bind question on visibroker 4.5.1
Date: 13 Aug 2002 06:11:15 -0700
Organization: http://groups.google.com/
Lines: 54
Message-ID: <e3ccc19b.0208130511.62844c2d@posting.google.com>
References: <e3ccc19b.0208051335.7da57d33@posting.google.com> <2a88fc0b.0208120359.102536b2@posting.google.com>
NNTP-Posting-Host: 205.181.240.133
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1029244276 13081 127.0.0.1 (13 Aug 2002 13:11:16 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 13 Aug 2002 13:11:16 GMT