Skip to Main Content

Java Programming

java.util.UUID.randomUUID unique across JVM

807588Feb 10 2009 — edited Feb 10 2009
I want to have to generate unique id across mutliple JVM. I was wondering if this method was guaranty that ?

In other words, if I start 2 applications A and B, can I be sure that this method called from A application will never generate the same id in the application B ?

Otherwise, is their another way to get this id without using a database, just byte code ?

Thanhk you !
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 10 2009
Added on Feb 10 2009
3 comments
791 views