I have a web application where I need to generate a unique id(of type int) for each request. I've got 8 tomcats running across 4 machines, 2 tomcats each machine. It's pretty simple to generate a unique id with one tomcat, but with mulitple tomcats, it gets pretty tricky. I tried to use java class InetAddress to get the ip address of the machine and use that to set the range for the numbers, but since I'm using Linux it'll always return 127.0.0.1 as the ip address. Any advice on what to do?
--------------------------------- Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
