>I'm quite confused by this thread. I was under the impression that one >of the reasons that *entity* beans exist at all in the specification is >to effectively serve as data caches for the underlying data store. That >is, there is a person record on disk somewhere, but you deal with the >Person entity bean instead, because it will usually be (activated) in >memory. A cache needs to be kept in sync with its data source. For that you need update notifications generated by data source. To be a subscriber to events, you need singletons which are not supported in ejb spec. So, to maintain entity data in sync with the database, there is only one way: refresh entity attributes from the database every time a new transaction starts. the container achieves this by calling ejbLoad and ejbStore within the boundaries of a transaction. This implies that entity data is not cached in the real sense. Hamid =========================================================================== 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... 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
- Re: Caching of read-only DB contents in an EJB dan benanav
- Re: Caching of read-only DB contents in an... Assaf Arkin
