<p>The <strong>Session Facade</strong> pattern&#8217;s core application is development of enterprise apps. You can also call it a logical extension of <strong><a href="https://dineshonjava.com/design-patterns_25/">GoF designs</a></strong>. The pattern encases the interactions which are happening between the low-level components, which is Entity EJB. It is implemented as a higher level component, Session EJB. After which, it is responsible for providing a common and an only interface in order for the app to function or a part of the app.</p>
<h2>Session Facade Pattern</h2>
<p>It also reduces or completely ends the coupling between the lower level components which in turn simplifies the design. The structure of session facade pattern is such that it has client object, session facade object, and business object. All of these have certain problems to cater and certain tasks to perform.</p>
<div style="background-color: #f2f9fc; border-radius: 3px; border: 1px solid #c9e6f2; line-height: 1.45; padding: 16px 16px 16px 16px;">
<h2 dir="ltr">Spring 5 Design Pattern Book</h2>
<div dir="ltr" style="color: #20124d; font-family: 'calibri' , sans-serif; font-size: 13pt; text-align: justify;">You could purchase my <strong>Spring 5 book</strong> that is with title name &#8220;<strong>Spring 5 Design Patterns</strong>&#8220;. This book is available on the <a href="https://www.amazon.in/Spring-Design-Patterns-Dinesh-Rajput/dp/1788299450/ref=sr_1_1?ie=UTF8&;qid=1507925340&;sr=8-1&;keywords=spring+5+design+pattern"><strong>Amazon</strong></a> and <a href="https://www.packtpub.com/application-development/spring-5-design-patterns"><strong>Packt</strong></a> publisher website. Learn various <strong>design patterns</strong> and <strong>best practices</strong> in Spring 5 and use them to solve common design problems. You could use author discount to purchase this book by using code- &#8220;<strong>AUTHDIS40</strong>&#8220;.</div>
<div dir="ltr"></div>
<div dir="ltr"><a href="https://www.amazon.in/Spring-Design-Patterns-Dinesh-Rajput/dp/1788299450/ref=sr_1_1?s=books&;ie=UTF8&;qid=1512607966&;sr=1-1&;keywords=dinesh+rajput"><br />
<img class="aligncenter wp-image-3053 size-medium" title="Spring-5-Design-Pattern" src="https://i0.wp.com/dineshonjava.com/wp-content/uploads/2013/03/Spring-5-design-pattern.jpg?resize=243%2C300&;ssl=1" alt="Spring-5-Design-Pattern" width="243" height="300" /></a></div>
</div>
<div style="text-align: left;">
<blockquote>
<p><strong>also read:</strong></p>
<ul style="text-align: left;">
<li><a title="https://dineshonjava.com/business-delegate/" href="https://dineshonjava.com/business-delegate/">Business Delegate Pattern</a></li>
<li><a title="https://dineshonjava.com/service-locator/" href="https://dineshonjava.com/service-locator/">Service Locator Pattern</a></li>
<li><a title="https://dineshonjava.com/business-object/" href="https://dineshonjava.com/business-object/">Business Object Pattern</a></li>
<li><a title="https://dineshonjava.com/composite-entity-pattern/" href="https://dineshonjava.com/composite-entity-pattern/">Composite Entity Pattern</a></li>
<li><a title="https://dineshonjava.com/transfer-object/" href="https://dineshonjava.com/transfer-object/">Transfer Object Pattern</a></li>
</ul>
</blockquote>
</div>
<h2>UML Class Diagram for Session Facade</h2>
<p>Let&#8217;s see the following UML class diagram for the Session Facade.</p>
<p><img class="aligncenter size-full wp-image-4057" src="https://dineshonjava.com/wp-content/uploads/2018/01/Session-Facade.gif" alt="Session Facade" width="636" height="184" /></p>
<p>Use a Session Facade to encapsulate business-tier components and expose a coarse-grained service to remote clients. Clients access a Session Facade instead of accessing business components directly.</p>
<ul>
<li><strong>Client</strong> -The client object, in fact, is the representation of the client of the session facade which requires an access to the business service. The client object can be another session facade in either, the same business tier or a certain business delegate in some other tier.</li>
<li><strong>Session Facade</strong> &#8211; You can also implement session facade as a session bean. It is responsible for managing the relationship between various business objects and also, providing an abstraction of a higher level to the client. The session facade object offers, the business object which is participating, a coarse-grained access. The invoke invocation represents it to the session bean.</li>
<li><strong>Business Component</strong> &#8211; The business object is more like a role object. It is responsible for facilitating in order to apply various strategies like entity beans, session beans, and a DAO. The business object is also, responsible for providing data and some services within the class diagram. In order to provide a service, the session facade object has to interact with a lot of business object instances.</li>
</ul>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 <a href="https://dineshonjava.com/service-locator/">Previous</a> 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/business-object/">Next</a> 
									 </div> 
									</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
 $.post('https://dineshonjava.com/wp-admin/admin-ajax.php', {action: 'mts_view_count', id: '4056'});
});
</script>
Strategy Design Patterns We can easily create a strategy design pattern using lambda. To implement…
Decorator Pattern A decorator pattern allows a user to add new functionality to an existing…
Delegating pattern In software engineering, the delegation pattern is an object-oriented design pattern that allows…
Technology has emerged a lot in the last decade, and now we have artificial intelligence;…
Managing a database is becoming increasingly complex now due to the vast amount of data…
Overview In this article, we will explore Spring Scheduler how we could use it by…