HI,
Generally we are writing client (jsp/servlet) then communicating client with session bean and then session bean communicates with entity bean Why we require here session bean when client can directly communicate with entity bean
thanks
jyoti
-
Session Bean to Entity Bean Communication (3 messages)
- Posted by: jyoti agrawal
- Posted on: February 14 2001 19:16 EST
Threaded Messages (3)
- Session Bean to Entity Bean Communication by Vel Saran on February 14 2001 19:59 EST
- Session Bean to Entity Bean Communication by Goprinks R on February 15 2001 01:51 EST
- Session Bean to Entity Bean Communication by Nayan Gupta on March 13 2001 08:27 EST
-
Session Bean to Entity Bean Communication[ Go to top ]
- Posted by: Vel Saran
- Posted on: February 14 2001 19:59 EST
- in response to jyoti agrawal
Hi Jyoti,
Please check this thread.. where EdRoman gave a detailed explanation on this...
https://theserverside.com/patterns/thread.jsp?thread_id=625
Hope this helps..
Saran -
Session Bean to Entity Bean Communication[ Go to top ]
- Posted by: Goprinks R
- Posted on: February 15 2001 01:51 EST
- in response to jyoti agrawal
When u interact with the enitity bean u are directly hitting the database so for each entity bean access there is a network traffic .Whereas u can encapsulate all the relevant entity beans in a session bean.So when u call a sessio bean there is only one hit which is made to server and all the subsequent hits for entity beans are made at the server rather thatn client to server.So it reduces the traffic ... -
Session Bean to Entity Bean Communication[ Go to top ]
- Posted by: Nayan Gupta
- Posted on: March 13 2001 08:27 EST
- in response to jyoti agrawal
Hai , I think here is the main Logic of whole Middle tier development and ur asking for a client-server arch. , Dear when client will interact or at the other end when request will be from server itself ,which will be faster.So here everything is to reduce the trafic and newer versions of App server is just coming for this only.
So if u have any question pl ask me.
I will try myBest
Rajeev