From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5439c15172a5d16d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-22 11:49:46 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!wanadoo.fr!not-for-mail From: Pascal Obry Newsgroups: comp.lang.ada Subject: Re: Client connected to two servers in Glade Date: 22 Jan 2002 20:49:44 +0100 Organization: Home - http://perso.wanadoo.fr/pascal.obry Message-ID: References: <3C45556F.CE05AD1F@labe.felk.cvut.cz> <3C485758.F69BC3BE@labe.felk.cvut.cz> <3C4D7C10.463DEE55@labe.felk.cvut.cz> NNTP-Posting-Host: avelizy-103-1-3-42.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: wanadoo.fr 1011728985 20091 217.128.47.42 (22 Jan 2002 19:49:45 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 22 Jan 2002 19:49:45 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.80 Xref: archiver1.google.com comp.lang.ada:19195 Date: 2002-01-22T19:49:45+00:00 List-Id: Tomas Hlavaty writes: > Maybe, the problem lies in that I have two RCI partitions which are the > same, i.e. they provide the same services. So I can't write > > ... > Partition_A, Partition_B : Partition > > for Partition_A'Host use "this.that.there" > for Partition_B'Host use "some.where.else" > > procedure Server_A is in Partition_A; > procedure Server_B is in Partition_B; > ... > > as Frank suggests. > > The situation is as follows: > > +-------------+ +-------------+ +-------------+ > +-------------+ > | Machine_A1 | | Machine_A2 | | Machine_A3 | ... | Machine_An > | > | Partition_1 | | Partition_1 | | Partition_1 | | Partition_1 > | > +---------+---+ +---+-----+---+ +-------------+ > +---+---------+ > | | | | > \-----+-----/ \-----+---------------------------/ > | | > +------+------+ +------+------+ > | Machine_B1 | | Machine_B2 | ... > | Partition_2 | | Partition_2 | > +-------------+ +-------------+ > > where Partition_1 is a program collecting data from somewhere (not > interesting) that is executed on Machine_Ai as a daemon. Partition_2 is > a program simultaneously displaying data collected by any two > Partitions_1. A user specify Machine_Aj and Machine_Ak dynamically when > he wants to execute a Partition_2 on Machine_Bl. > > Isn't it to complicated? May be there is something wrong in the > structure of the distributed system. Should it be partitioned in a > different way? Yes. What you described is not achievable with RCI. It is just not possible to have 2 instances of the same RCI on the distributed application. You should definitely have a look at the RACW. This will make this architecture possible. In short: - create a partation "Manager" that will server as a name server. - create Partition_1 as a RACW partition, each one will register to the manager with a specific name (string) - Partition_2 will request 2 Partition_1 using the name server. This is a short description I agree. Have a look at the GLADE bank example which is somehow similar. And be sure to read the documentation, as you seem quite confused it could be possible that you have just skipped this step :) Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://perso.wanadoo.fr/pascal.obry --| --| "The best way to travel is by means of imagination"