I'd like to use session beans (presumably stateless) to generate custom
data
based on database information.  The presentation layer would call into
any
one of these session beans.  The session beans would first check their
internal cache, and return the requested data from there (if it exists),
otherwise it would query the database, build the result, and before
returning it, stick it into the cache.

I'd have to create a static member variable for the cache, and hope the
EJB container instantiates these things in the same JVM..

Is there something better than session beans to use for this task?


--
David Michaels <[EMAIL PROTECTED]>
Director of Technology
ShockMarket Corporation (650) 330-4665
begin:vcard
n:Michaels;David
tel;cell:650-218-6778
tel;work:650-330-4665
x-mozilla-html:TRUE
url:http://www.shockmarket.com
org:ShockMarket Corporation
adr:;;540 University Ave Suite 350;Palo Alto;CA;94301;USA
version:2.1
email;internet:[EMAIL PROTECTED]
title:Director of Technology
fn:David Michaels
end:vcard

Reply via email to