Hi!

ZZ-Coz wrote:
> Can I use ejbLoad and ejbStore to implement a caching BMP Bean.
> 
> so my get methods will not access the db on every call...
> 
> an example may help..

Yes, this is possible. You could do the ejbLoad only once per activation
(and keep a flag so it doesn't load anymore after that), and only store
if any fields have been changed. You will have to write this code
yourself, of course, but it is not very difficult.

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to