Yep,

The idea of using a session bean facade to your entity beans is to do your work in 
batch to prevent multiple remote
calls. So for the example below, you could have a method in the session bean ( 
doAllThreeMethods() ) that would take
care of all three actions for you.

This holds true for any client of an EJB. Even if the client is another EJB, depending 
on your app server, it may not
optimize the calls to local even though it knows it is in the same VM.

Chris

-----Original Message-----
From: Rich Johns [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 11, 2000 4:15 PM
To: [EMAIL PROTECTED]
Subject: Re: Entity Beans and Servlets


James Cook wrote:

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

Isn't the servlet an ejb client in the same sense that a java app is
an ejb client? Would a java app ejb client have the same issue?

thanks

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

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