> > <vendor> > > The jBoss EJB container allows one to use stateless session beans for > > this. A special instance pool which guarantees that only one instance of > > the bean is created can be used for exactly this purpose. This allows > > one to do singletons as an EJB, which brings all the other benefits of > > EJB, and also helps keep the application EJB only. > > </vendor> > > Does the server single-thread access to the instance in this case, in case the > instances are not thread-safe? <vendor> Yes. The EJB semantics are preserved. It behaves the same way as an ordinary stateless session bean, but with the addition that the pool only contain at most one instance which is synchronized. </vendor> It's perhaps not a perfect solution (although I can't think of any cons right now), but should be good enough for most situations. /Rickard -- Rickard �berg @home: +46 13 177937 Email: [EMAIL PROTECTED] http://www.telkel.com http://www.jboss.org http://www.dreambean.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".
- Singleton design/implementation techniques Seth Hawthorne
- Re: Singleton design/implementation techniques Sunil Kuchipudi
- Re: Singleton design/implementation technique... Evan Ireland
- Re: Singleton design/implementation technique... Rich Johns
- Re: Singleton design/implementation techn... Sunil Kuchipudi
- Re: Singleton design/implementation techniques Rickard �berg
- Re: Singleton design/implementation technique... Evan Ireland
- Re: Singleton design/implementation technique... Sunil Kuchipudi
- Re: Singleton design/implementation techn... Jean-Baptiste Nizet
- Re: Singleton design/implementation t... Rob Woollen
- Re: Singleton design/implementation techniques Rickard �berg
- Re: Singleton design/implementation techniques Smith, Curt H.
- Re: Singleton design/implementation techniques Rickard �berg
- Re: Singleton design/implementation technique... Evan Ireland
- Re: Singleton design/implementation techniques Chris Raber
- Re: Singleton design/implementation techniques Rickard �berg
- Re: Singleton design/implementation techniques Rickard �berg
- Re: Singleton design/implementation techniques Chris Raber
- Re: Singleton design/implementation techniques Rickard �berg
- Re: Singleton design/implementation techniques Chris Raber
- Re: Singleton design/implementation techniques punit malik
