[jboss-user] [Beginners Corner] - Re: Sequence ID generator - Advice sought

j-n00b do-not-reply at jboss.com
Wed Jan 21 09:55:18 EST 2009


Hi!

Maybe this is not exactly what you want, but you could use the UUID generator for that. 

UUIDs aren't simple numbers, they are generated using different kind of information. The generator generates a new, random id on every call, so there is no problem in clustered environments. Considering its size (128 bit per id), it is very unlikely that the same uuid is generated twice.

Have a look at >>> http://www.jboss.org/community/docs/DOC-11223 <<<, if you want to learn more.

cheers,
Andre

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4203665#4203665

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4203665



More information about the jboss-user mailing list