We tend to use one of two approaches, depending on what we're doing.

For things like HTTP servers, we use xdmp:random() (it's in group.xsd as
the default value for http-server-id). 

For users and groups we use a hash based on the user or group name so
that we can detect an attempt to create the user or group multiple times
in the same transaction (via a conflicting update of the same URI).

Wayne.


On Sun, 2010-03-28 at 08:43 -0700, deepak mohan wrote: 

> Hi All,
> 
> Please tell me how ML constructs the unique ID while creating any ML
> entities(App Servers, DB, forest etc.). I need to generate a unique
> ID. I tried dig into the ML Admin modules APi, I couldnot find the
> algo. Are they using random() and check for existence?
> 
> Thanks,
> Deepak Mohanakrishnan.
> 
> 
> 
> ______________________________________________________________________
> 
> Your Mail works best with the New Yahoo Optimized IE8. Get it NOW!.


_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to