From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,897502692464f25e X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-06-16 07:08:28 PST Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usc!cs.utexas.edu!uunet!pipex!uknet!zaphod.axion.bt.co.uk!nwinton From: nwinton@axion.bt.co.uk (Neil Winton) Newsgroups: comp.unix.osf.misc Subject: DCE Type vs Object UUIDs (Was: Re: Multiple DCE Servers with the same Interface) Date: 16 Jun 1993 14:05:44 GMT Organization: BT Laboratories Distribution: world Message-ID: <1vn9bo$ce7@zaphod.axion.bt.co.uk> References: <1vk6bj$ooi@zaphod.axion.bt.co.uk> <1vkea7$oub@paperboy.osf.org> NNTP-Posting-Host: newton.axion.bt.co.uk In article <1vkea7$oub@paperboy.osf.org>, rsalz@osf.org (Rich Salz) writes: |> In <1vk6bj$ooi@zaphod.axion.bt.co.uk> nwinton@axion.bt.co.uk (Neil Winton) writes: |> >(BTW, I'd be really grateful if someone could explain the rationale for having to |> >associate Type UUIDs with Object UUIDs when you wish to select from multiple |> >services within a single server. There seems to be a an unnecessary level of |> >indirection, or am I missing something?) |> |> I'm not sure what you mean by this. You only need a Type UUID if you have |> multiple instances of the same interface. Suppose we have a printer |> interface that provides a "print_text" operation. For a PostScript |> printer we have to translate the text, while for a daisy wheel we just |> send it out. This means we have two different implementations of the same |> operation. If a server manages several printers, they will group each |> printer into the appropriate type. When a print_text operation is |> received, the RPC runtime will automatically invoke the PostScript or the |> Daisy version. If, later on, you upgrade your printer, then the server |> just has to change the type for the new printer, and existing clients |> will now get nice Daisy :-) output without any changes at all. I'm sorry, I should have explained better. IMHO, this area is one of the least-well documented and explained and matters are not helped by the (infamous) timop example program. I have no problem with creating an Object UUID to identify a particular object instance (which is what the original question is about). I have no problem that there should be the concept of server of a particular type (although it is arguable whether the `type' isn't really just the interface presented). It is sensible that a server should be able to present multiple interfaces. What confuses the heck out of me is why DCE provides the facility to generate and make known (via the name service or otherwise) an Object UUID but then have the facility to generate a Type UUID, which is registered with the RPC runtime, and then an association created between Type and Object UUIDs so that there is effectively a level of indirection created to no good effect. It is not clear to me that there is any occasion where the associate between Type and Object UUID buys you any more flexibility that you might otherwise have. I guess what I *really* want is a good, clear, concrete example of where it is *necessary* to use both Type and Object UUIDs. I can't really see where Type UUIDs are necessary in the example you quote above. If a server provides the "print_text" interface you can change whatever you like behind that interface provided you keep the semantics the same. Clients don't have to change. |> Make sense? |> /r$ I'm sorry if I didn't (and don't) make sense. All enlightenment greatfully received! Neil * Neil Winton G306a, SSTF Building This sentence * * N.Winton@axion.bt.co.uk BT Laboratories has two missing, * * Tel +44 473 646079 Martlesham Heath but you can still * * Fax +44 473 643019 IPSWICH IP5 7RE, UK sense of it. *