• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to get UUID:xxxx ?

 
Bhiku Mhatre
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
While running through examples of UDDI4J interacting with a UDDI registry, I often see statements like:
keyedReference.setModelKey("UUID:C1ACF26D-9672-4404-9D70-39B756E62AB4");
where does this big number come from? what is it's significance and how can we get it? Please help.
 
Tiger Scott
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You get this big number when you register with any of the UDDI regestries- IBM/MS etc.
HTH
 
John Meloro
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the following:
http://www.dsps.net/uuid.html
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's an identifier that's supposed to be global. Meaning that if you lookup a service from two public UDDI registries and find the same service instance registered in both, they should both have registered with the same UUID.
 
Ram Pathan
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
lasse
i am a bit confused. did u mean that a same service with 2 implementations have same UUID ?
plz correct me if i am wrong.
thx
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Kituz Greenluv:
did u mean that a same service with 2 implementations have same UUID ?

No, I mean that a single service implementation should use the same UUID in any registries (UDDI registries, for example) it is registered with.
Otherwise, a client who's looking for multiple implementations of the abstract service would get two references to the same service implementation believing that they are different. For example, if the web service in question would offer printing services, the client application could end up displaying the same printer twice in a GUI list of some sort.
In most "real world" projects the actual UUID probably doesn't really matter as long as it's unique within the registry (most applications seem to treat UUIDs as "index keys" instead of "identities").
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An addition to what I said: the abstract service can also be assigned a UUID if the intent is to uniquely identify the service (e.g. "printing PostScript files on an A4") and not the implementation (e.g. "that old Canon laser printer in the corner").
[ April 13, 2004: Message edited by: Lasse Koskela ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!