GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  EJB
Go To First  |  Previous Question  |  Next Question 
 EJB  |  Question 167 of 175    Print  
What is session facade

  
Total Answers and Comments: 5 Last Update: July 07, 2009     Asked by: keerthana 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: coolguy_krkr
 
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

Above answer was rated as good by the following members:
damholda, phdsong, geeky920
March 07, 2007 04:22:31   #1  
kumar        

RE: What is session facade

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


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
March 13, 2007 06:14:32   #2  
Pramod        

RE: What is session facade
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.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
April 16, 2008 09:44:53   #3  
redleader Member Since: April 2008   Contribution: 10    

RE: What is session facade
Yes; and the facade design pattern is normally given the name envelope.

 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 2Overall Rating: -2    
May 11, 2008 16:02:47   #4  
coolguy_krkr Member Since: May 2008   Contribution: 4    

RE: What is session facade
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

 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 0Overall Rating: +2    
July 07, 2009 08:25:46   #5  
bhushanamca Member Since: July 2009   Contribution: 2    

RE: What is session facade
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.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape