Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to get UUID:xxxx ?

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You get this big number when you register with any of the UDDI regestries- IBM/MS etc.
HTH
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Take a look at the following:
http://www.dsps.net/uuid.html
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic