Hi! "Lahooti, Hamid" wrote: > >>Almost but not quite. Readonly data can be cached by stateless session > >>beans. If you need read/write caching then either use Entities or a RMI > >>object. > > 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. > and it > doesn't get destroyed by the container? The state may be kept in instance variables of each stateless session bean instance, or if you want to optimize it you could store it in static variables and use lazy loading (i.e. check on each usage that the class has not been reset, in which case you load the data again). /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... Srinivasan Arun
- Re: Caching of read-only DB contents in an EJB Dan Benanav
- Re: Caching of read-only DB contents in an EJB Anand Narayan
- Re: Caching of read-only DB contents in an EJB Randy Stafford
- Re: Caching of read-only DB contents in an EJB Michael Pikounis
- 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
