Normally the data that is being cached is a Vector of information spanning
multiple entities say orders and customers.
So caching your entity beans will only give you some advantage ( if you are
using entity beans to read data ). You could also use a stateful session
bean with the Vector as an instance variable on it. Then the method on your
sesion bean would use the Vector if it's already been established.
Sachin.
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Rick Gibbs
> Sent: Tuesday, September 28, 1999 7:30 AM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP-EJB and caching
>
>
> > We're using a solution somewhat like this but we only cache for a
> > session/transaction and has no need for the invalidating. But we do
> retrieve
> > data "lazily" from the EJBs.
> > Better solution is: Keep as little code as possible in the
> JSP-page, that
> > coding is often subject to much change, instead build a
> JavaBean which
> > automagically retrieves fresh data if invalidated.
> >
> > This performs "extremely" well since compiled JSP communicating with
> > JavaBeans is extremely fast (of course depending on servlet-engine
> > implementation).
> >
> This is basically what we came up with. All of our JSP beans would
> communicate with one central caching bean that was stored in the
> ServletContext. This way all of our JSP beans would be for displaying
> content and we could eliminate all of the extra code inside
> the actual JSP
> pages.
>
> ==============================================================
> =============
> 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".
>
>
===========================================================================
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".