Session beans would only be for a single session - ie. one user. I would
rather take the hit once and store the data in the entity. The next time a
user asks for the same data it retrieved from its cache. I don't want to
keep going back to the database repeatedly for data that is not changing
frequently.
Hope that clarifies things some.
>From: Amit Unde <[EMAIL PROTECTED]>
>Reply-To: A mailing list for Enterprise JavaBeans development
><[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Designing Read Only Entity Beans
>Date: Sun, 13 Aug 2000 14:07:04 GMT
>
>As you said , using the entity bean would certainly be overhead for read
>only
>data ...
>Would it be good to use session bean (with JDBC code for SELECT query)
>instead
>?
>What say ?
>
>Amit
>
>On Sat, 12 Aug 2000 15:46:43 GMT, Tom Jordan <[EMAIL PROTECTED]> wrote:
>
>>I would like to know what approaches people are taking to design entity
>>beans so that they behave in a read only manner and are sharable across
>>users. I am really interested in a portable design not BEAs read only
>>beans.
>>
>>For example, if you have a catalog of products, ideally I would like to
>>populate a bean with a product once and all subsequent users of the bean
>>would access that instance and not have to repopulate or go to the
>>database
>>each time. In my use so far, I notice that every call to the beans
>>methods
>>results in the ejbload and ejbstore methods being called, making the
>>operation very expensive in terms of database calls.
>>
>>any thoughts?
>>
>>Thanks
>>Tom.
>
>________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>===========================================================================
>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".
>
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
===========================================================================
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".