• Post Reply Bookmark Topic Watch Topic
  • New Topic

Distinct ID  RSS feed

 
Abiodun Adisa
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I am writing an application that has a requirement that each client sends a Unique ID(and the ID must be unique to that client) to the server.I have thought about
getLocalHost() but there maybe many clients running on one Host . any suggestions?
 
Paul Clapham
Sheriff
Posts: 22521
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have the server generate the unique ID when it needs to, and send it to the client.
 
Jan Cumps
Bartender
Posts: 2632
17
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since Java 1.5, java.util.UUID can deliver unique identifiers.

In previous versions,
java.rmi.server.UID can be used.

Regards, Jan
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!