GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  EJB
Go To First  |  Previous Question  |  Next Question 
 EJB  |  Question 167 of 172    Print  
What is session facade

  
Total Answers and Comments: 4 Last Update: May 11, 2008     Asked by: keerthana 
  
 Sponsored Links



 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
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 | No
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 | No
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 | No
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 | No


 
Go To Top


 Sponsored Links



 
Sponsored Links

 
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape