• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 502
  • Last Modified:

Advantages of Session Facade Pattern

I have the following answer
Session Bean displays simple API, hiding the complexity
Session Beans does not allow you to directly access the entity beans

Where ever I give the above answer in a conversation, I am being asked there is an other advantage. They say for the first reason of hiding the complexity you can use an API and for the second reason they say you can you a session bean itself. Why should you use a facade. Could someone give me an answer.
0
prsubject
Asked:
prsubject
1 Solution
 
jcott28Commented:
I found this description pretty good:

A session fa├žade is an EJB design pattern in which a session bean is works like a wrapper over entity beans. A client does not have a direct access to Entity beans but through session beans only for reducing network overhead. Usually stateless session beans are used as single access point for the clients but stateful session beans can also be used for the same purpose. A layer of session beans exposed to clients to access not only gives a clean approach towards client access to bean components but also reduce network calls so as to make the whole system of high performance.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now