I use that strategy too. I got a KeyGeneratorBean that keeps track of the nextValues per "class" (uses an underlying database table). I currently do not have any problems (but still got to test it under load)...
If you want I can share my code so you can take a look... ++Jos.nl And thus it came to pass that Brian McSweeney wrote: (on Tue, Apr 01, 2003 at 10:34:24AM +0100 to be exact) > Hi all, > > There has been much discussion on database and container independent primary key > generation strategies. I've been using the first strategy in Floyd Marinescu's book > > ftp://www6.software.ibm.com/software/developer/library/j-ejbdesign.pdf > > but have been getting transaction roll-back exceptions. I've also read the > discussion > on the server side about it > http://www.theserverside.com/discussion/thread.jsp?thread_id=1995 > > This does seem to be a simple thing and I don't want to reinvent the wheel. > > Any suggestions? > > Brian -- I have my fears, but they don't have me... ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user