Hi! "Lahooti, Hamid" wrote: > > A stateless session bean with a state? > >>Yes. If it's readonly and not client specific. Sure. > > as a singleton? > >>I didn't say that. > I did. It is needed for managing caches. > Containers can destroy stateless session beans when they > decide they are not needed by clients. IMHO, that's not > a good foundation for implementing a cache manager. If the state is kept in instance variables, and it is "heavy", this will be a problem, but only if the server creates/destroys instance often. If the size of the pool is set to the approximate nr of concurrent callers this will not be a problem. If the state is threadsafe you could easily use a static variable to keep the data. Just be prepared to reload it if the server discards the class. /Rickard -- Rickard �berg @home: +46 13 177937 Email: [EMAIL PROTECTED] http://www.dreambean.com Question reality =========================================================================== 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".
- Re: Caching of read-only DB contents in an EJB Lahooti, Hamid
- Re: Caching of read-only DB contents in an EJB Rickard �berg
- Re: Caching of read-only DB contents in an... Laird Nelson
- Re: Caching of read-only DB contents i... James Cook
- Re: Caching of read-only DB contents in an EJB Lahooti, Hamid
- Re: Caching of read-only DB contents in an EJB Rickard �berg
- Re: Caching of read-only DB contents in an... dan benanav
- Re: Caching of read-only DB contents i... Dan Benanav
- Re: Caching of read-only DB conten... Assaf Arkin
- Re: Caching of read-only DB contents in an EJB Lahooti, Hamid
- Re: Caching of read-only DB contents in an EJB Rickard �berg
- Re: Caching of read-only DB contents in an EJB Matthew T. Machczynski
- Re: Caching of read-only DB contents in an EJB Lahooti, Hamid
- Re: Caching of read-only DB contents in an EJB Laird Nelson
- Re: Caching of read-only DB contents in an EJB Chris Raber
- Re: Caching of read-only DB contents in an EJB Dan Benanav
- Re: Caching of read-only DB contents in an EJB Chris Raber
- Re: Caching of read-only DB contents in an EJB Chris Raber
- Re: Caching of read-only DB contents in an EJB Thibault Cuvillier
- Re: Caching of read-only DB contents in an EJB Chris Raber
- Re: Caching of read-only DB contents in an EJB Assaf Arkin
