Thursday, December 07, 2006


The project that I am currently working on had the need for unique identifiers. This can easily be accomplished using a sequence from a database or by creating a centralized ID generation server. However, we had the need for many clients to create a globally unique identifier without requesting information over the network. We ending up utilizing the java.util.UUID which is a class that was added into Java 5.0. java.util.UUID creates version 4 UUIDs from the ISO/IEC 11578:1996 spec. It can also parse versions 1-3. There is a very informative mini-faq on java.util.UUID here.