• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.rmi.server.UID uniqueness  RSS feed

 
Sebastian Mihai
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone.

I'm looking to use java.rmi.server.UID generator, and I learned that each generated UID has 3 parts to it. One of the parts is described as such in the Java 1.4 API:
an int that uniquely identifies the VM that this UID was generated in, with respect to its host and at the time represented by the time value (an example implementation of the unique value would be a process identifier), or zero for a well-known UID


Would someone please clarify what exactly is used to generate this? The API says it is done "with respect to its host and at the time represented by the time value", but I don't understand how it uses the host information.

Also, would this be viable to use in a clustered architecture? (Many VMs, one database, each VM generates its own UIDs).

Thanks
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!