[JAVA]Generating unique identifier with in a sesssion

2007-03-23 Thread temp temp
I need a object which generates unique identifiers for all instances I create how to do this ? Thanks Regards - Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta.

[OT] Re: [JAVA]Generating unique identifier with in a sesssion

2007-03-23 Thread Dave Newton
--- temp temp [EMAIL PROTECTED] wrote: I need a object which generates unique identifiers for all instances I create how to do this ? Synchronized counter? http://jug.safehaus.org/?

Re: [JAVA]Generating unique identifier with in a sesssion

2007-03-23 Thread Ted Husted
* http://java.sun.com/j2se/1.5.0/docs/api/java/util/UUID.html The simplest thing would be something like String id = UUID.randomUUID().toString(); -HTH, Ted http://www.husted.com/ted/blog/ On 3/23/07, temp temp [EMAIL PROTECTED] wrote: I need a object which generates unique identifiers