Yes,
if you are looking for read-only access then utilise Session Beans and JDBC to access the DB
directly for list of value objects....this idea is captured in the Value List Handler pattern
(Core J2EE Patterns, pp353 , Allur et. al).
You can then iterate through the large list of value objects and if CRUD functions are to be performed on the data for a particular entity then perform a lookup for that entity bean.
regards
Duncan
Duncan Alexander
Consultant
Email: [EMAIL PROTECTED]
Spektra
Integration House
Alba Campus
Livingston, EH54 7LL, Scotland
Tel: +44 (0) 1506 460234 Fax: +44 (0) 1506 460212
W: http://www.spektra.co.uk
'driving e-finance - delivering solutions to the financial services industry'
This email is intended for the person or organisation to which it is addressed.
The information contained in this email is confidential and may be subject to
legal privilege. If the reader is not the intended recipient, you are hereby
notified that any dissemination, distribution, or copying of this communication
is prohibited. If you receive this email in error please notify Spektra Systems
immediately by telephone on +44 (0) 1506 460234. Thank you.
| Sunder Rajan <[EMAIL PROTECTED]>
Sent by: A mailing list for Enterprise JavaBeans development <[EMAIL PROTECTED]> 24/09/2002 18:21
|
To: [EMAIL PROTECTED] cc: Subject: Re: [EJB-INT] Finders in EJB 2.0 |
Iam sorry, you are right, Iam looking for a way to avoid doing the
remote.getValue calls to the server. Is there a design pattern or
something else we can use?
Thanks,
Sunder
----- Original Message -----
From: Fei Li <[EMAIL PROTECTED]>
Date: Tuesday, September 24, 2002 10:16 am
Subject: Re: Finders in EJB 2.0
> Hi Sunder,
>
> I only know finder can find collection of remote/local interfaces.
> Are you
> sure you can find data objects?
>
> Fei Li
>
> ----- Original Message -----
> From: "Sunder Rajan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, September 24, 2002 9:48 AM
> Subject: Finders in EJB 2.0
>
>
> > Hi Everyone,
> > I have a general EJB question. We have finders that return a
> collection> of dataobjects from the entity bean. When we iterate
> through the
> > collection and execute dataobject.getValue a server call is
> being made
> > for each one of these getValue methods. This is resulting in
> slowdown> on weblogic 6.1. Is there a way to prevent this?
> >
> > Thanks,
> > Sunder
> >
> >
>
========================================================================
===
> > 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".
