On many systems, the only way to guarantee a unique number is to use a
database. I can send you a StatelessSessionBean that uses Sybase to generate
a unique id, but if you are trying to stay generic, I would recommend you
use a hash that is based on a random long, the timestamp the *bean was
created*, the current timestamp, and the IP address.

jim

----- Original Message -----
From: Robert Krueger <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 30, 2000 3:40 AM
Subject: Re: uuid generation algorithm by jim frentress


oracle, sybase, adabas d depending on the project. why does that matter?

robert


At 23:42 29.06.00 , you wrote:
>Which database are you using?
>
>jim

(-) Robert Kr�ger
(-) SIGNAL 7 Gesellschaft f�r Informationstechnologie mbH
(-) Br�der-Knau�-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to