What is session facade

Showing Answers 1 - 15 of 15 Answers

kumar

  • Mar 7th, 2007
 

Instead of accessing the ENINTY Bean directly,   You access the client through Session bean, i.e you call session bean first which in turn calls entity bean, this is called session facade

Pramod

  • Mar 13th, 2007
 

A SessionFacade acts like a wrapper class which exposes necessary  methods of all the beans present  in this class , these beans might be entity or session . On calling the method of this class we should write code to call the method on the respective bean i.,e we need to write code that redirects the call to the respective bean which was supposed to handle the request. This class should typpically need to be a remote bean and this shoul act as pont of entry to all other local beans . By this we reduce the network traffic as only once object proxy is being travelled from server to the client.

Session facade is one design pattern that is often used while developing enterprise applications.


It is implemented as a higher level component (i.e.: Session EJB), and it contains all the iteractions between low level components (i.e.: Entity EJB). It then provides a single interface for the functionality of an application or part of it, and it decouples lower level components simplifying the design.

Basically we wrap all the calls inside a Session Bean, so the clients will have a single point to access (that is the session bean) that will take care of handling all the rest.

Hope this answers the question.


Thanks
Rama

Session Facade is a design pattern. It is used to reduce the network round trips between client and EJB comp. SLSB comp will act as session facade and it is receiving request from client and communicate with other components by generating local calls due to this network round trips will be reduced. SLSBean acting as session facade it does not contain any business logic it just contain logic to interact with other components.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions