You could get around this partly though by returning higher level "Data"
objects.
i.e.

class XData {
   String name;
   int Id;
   String address;
   Date dob;
}


then call:
....
    XData xd = entity.getData(someId);

    now refer to xd.Id, xd.name, xd.address etc ....

Can save you a lot if you have a lot of usage of the data in one entity/row
in
one place.


> -----Original Message-----
> From: James Cook [SMTP:[EMAIL PROTECTED]]
> Sent: 11 August 2000 20:10
> To:   [EMAIL PROTECTED]
> Subject:      Re: Entity Beans and Servlets
>
> One performance problem is that every call will take place in its own
> transaction. If you call:
>
> 1. entity.getID();
> 2. entity.getName();
> 3. entity.setName("Jim");
>
> this would take place in three separate transactions.
>
> jim
>
>
> ----- Original Message -----
> From: "Ganesh Venkataraman" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, August 11, 2000 2:03 PM
> Subject: Entity Beans and Servlets
>
>
> >   I am really sorry to bother you all with a basic question.
> >
> >   Is it really a good practise to call an Entity Bean's remote methods
> from
> > a Servlet. If not, can some one explain me why?
> >
> > Thanks and regards
> > Ganesh
> >
> >
> ==========================================================================
> =
> > 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".

===========================================================================
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".

Reply via email to