Howdy,
Can you use the local host name + the current time?  Or something in
that vein...

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Tom Ly [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, December 16, 2003 1:29 PM
>To: [EMAIL PROTECTED]
>Subject: How do you generate a unique number for each request across
>muliple tomcat instances?
>
>I have an application where I need to generate a unique int for each
>request that comes in.  I've got about 8 Tomcat instances running
spread
>across four machines(two tomcat's each machine).  It's pretty simple
with
>one Tomcat, but with mulitple Tomcats it gets tricky.  I tried using
>InetAddress to get the ip address of the current machine and use that
to
>set the range for each tomcat(since the ip address will always be
unique),
>but since I'm using Linux, it'll always return 127.0.0.1 as the ip
address,
>so I can use class InetAddress.  Any advice on what to do?
>
>
>---------------------------------
>Do you Yahoo!?
>Protect your identity with Yahoo! Mail AddressGuard



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to