This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes VMID Lengths Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "VMID Lengths" Watch "VMID Lengths" New topic
Author

VMID Lengths

Alan Philpott
Greenhorn

Joined: Apr 03, 2006
Posts: 1
Hi,

We are using a VMID to generate a unqiue ID for creating a filename on the system. We considered using a date/time approach but this wouldnt be sufficient as multiple instances of an application could be deployed to write out files to a single place.

Is this considered a good way to generate a unique id?

Also, will the ID always be 42 characters long (if you ignore the '-' symbols)?
c293d3a4287f22e4:4c7cec6a:10a5f903064:-8000

The ':' and '-' will be stripped out.

Thanks

Alan
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: VMID Lengths
 
Similar Threads
JMS and Unique ServerID
lock() and bookSeats() - - - - - - waiting for response
lock signature vs. requirements
Reliability of using the VMID as a seed for SecureRandom in generating GUID's
Identifying the thread that placed the lock