Hello ,
I have read about this design
pattern and one of the advantages listed is that the number of network calls are reduced
I had a few doubts / questions regarding this point :
Case 1 >
Say a
Servlet : SvltA makes a call across the network to three different Enity Beans
So here agreed that there is a lot of netwrok traffic
Case 2 >
Introduce a Session Bean with which the Servlet communicates
The Session Bean in turn communicates with the Three Entity Beans
My questions are :
a > Would there not be network calls if the Session bean is on one machine and the Entity Beans on another
In this case would there not be three n/w calls between the session bean and the entity bean ?
b > Does this mean that the Session Bean and the Entity Beans should be on the same machine ?
c > Does this mean that if I were to use
EJB 1.1 then even communication btween the sesison bean and the entity beans would involve Stub / Skeleton / Marshalling / Unmarshalling ?
So here the use of EJB 2.0 would be better ?
Finally does this mean that when we say that network calls are reduced we only mean the n/w calls between client and the Bean ?
Regards ,
-satsih