Victor Batista wrote: >>> CREATE SEQUENCE TEST_SEQ START WITH 1000 INCREMENT BY 1 >> >> As an aside, if you expect to be creating a lot of beans in a short >> time and you don't care about gaps in your sequence of PKs and JBoss >> supports it, you may want to increment by a larger number. With >> WebLogic you can set the increment to 10, for example, and it will >> give out PK n, n+1, ..., n+9 before it has to hit the sequence again. >> > Does Weblogic manages this automatically? If you set the > increment by 10, Weblogic will assign n, n+1, ...n+9 > automatically, ie, it will get the next sequence value only > when it has used all the 10 values between n and n+9?
Yes, exactly. All I need to do is specify the key-cache-size tag and create the Oracle sequence with the same increment value. Unfortunately, I don't see any similar tags in the JBoss section, thought it's probably worth a visit to the JBoss docs to see if there is an XML element that you could add to the XDoclet template. David Harkness Sr. Software Engineer Sony Pictures Digital Networks (310) 482-4756 ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
