I just created random long numbers using the Random class. It works quite well, I guess
Joined: May 26, 2008
Thanks all guys who replayed on my post.
I'm gonna use System.nanoTime() instead of thread number.
At first random, depends on the range but has a possible to generate the same number. I think.
Second Thread Id also possible, but the number is small maybe 1~10. and It is also reused when the thread dead and create new one. (but It also possible when your code is exactly locking and unlocking)
But I choose time. Although multi-thread try to get a cookieId at the same time, It is impossible to get the same cookie ID in synchronized method.
That's my reason.
Thanks again ~~ Wish me luck to get a cert. and I also wish you luck. ^^
Hi TomoTazzy. ~~ ^^ It's great to see you. [ September 15, 2008: Message edited by: Jerry Ju ]
Hi Jerry, I live in Korea too. I've never seen a Korean posting on here, it's my first time though. I use Random class for the long type cookie. It works quite well I guess. I've almost done implementing URLyBird application, but I still doubt in so many things. To be honest, I'm afraid of preparing documentation. How hard it would be. nice to see you on this great community. Good luck..