• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 547
  • 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.
1 Solution
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

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