The generator I have in mind will increment the values.
Where do you plan to store the values? Database?
In the interfaces, I cant see some init(startValue) method or something similar. This method should be there and should be called on initializing the generator.
Couldn't you initialize the generator in KeyGeneratorFactory.getKeyGenerator()?
The UUIDGeneratorFactory returns a new instance of the generator every time. This is no problem with random keys, but for incrementing, I have to synchronize the multiple instances of the keygenerator in some way.
Yes.
Does somebody have any comments on that or can point me in the right direction ? Thanks in advance
Do you know how the HiLo generators work? It seems to me it is what you need.
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user