Singletons are problematic. They can easily become a performance bottleneck and also tend to be a single point of failure.
theserverside.com has documented one such strategy (among others) which generates PKs in a clustered environment. (The strategy was proposed by Jonathan Weedon (Borland) and generates numbers for PKs, as opposed to other strategies which generate Strings). -krish > -----Original Message----- > From: A mailing list for Enterprise JavaBeans development > [mailto:[EMAIL PROTECTED]]On Behalf Of ejblist ejb > Sent: Tuesday, March 19, 2002 9:01 PM > To: [EMAIL PROTECTED] > Subject: PK Generator > > > Hi All : > > Can anybody throw some light on the best PK generator which could be used in > a clustered environment. > > According to me a Singleton RMI object would be usefull(ofcourse it has it's > own limitations) than having a DB sequence generator. > > Any suggestions ???? > > TIA. > > _________________________________________________________________ > Join the world�s largest e-mail service with MSN Hotmail. > http://www.hotmail.com > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff EJB-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". > > =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
