Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: nwinton@axion.bt.co.uk (Neil Winton)
Subject: DCE Type vs Object UUIDs (Was: Re: Multiple DCE Servers with the same Interface)
Date: 16 Jun 1993 14:05:44 GMT	[thread overview]
Message-ID: <1vn9bo$ce7@zaphod.axion.bt.co.uk> (raw)
In-Reply-To: 1vkea7$oub@paperboy.osf.org

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.        *


  reply	other threads:[~1993-06-16 14:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-06-07 17:50 Multiple DCE Servers with the same Interface Barry P Sheward
1993-06-08 15:48 ` Greg Brail
1993-06-10 13:47   ` Barry P Sheward
1993-06-15  9:56     ` Neil Winton
1993-06-15 12:11       ` Rich Salz
1993-06-16 14:05         ` Neil Winton [this message]
1993-06-16 18:29           ` DCE Type vs Object UUIDs (Was: Re: Multiple DCE Servers with the same Interface) Rich Salz
1993-06-17 16:42             ` Neil Winton
1993-06-18 21:02               ` Greg Brail
1993-06-21 12:38                 ` Rich Salz
1993-06-22 21:45                   ` Greg Brail
1993-06-23 18:59                     ` Rich Salz
1993-06-24 15:14                       ` Greg Brail
1993-06-10  0:00 ` Multiple DCE Servers with the same Interface Per Igel
1993-06-11 19:54 ` Examples of IDL unions Naved Khan
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox