Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Session Facade  RSS feed

 
Ram Adsumalli
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I am googling the Session facade. I am Unable to follow the concept. Can any one make me clear with the example if possible . How bussiness delegate links to the Session facade.

Adsumalli.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A SessionFacade is a layer of Stateless Session EJBs that provide the public API for your application. All it exists for is to create a layer which can leverage the benefits of a container managed environment (distribution, transaction handing, security). Its a little difficult to describe without providing a drawing but for a very simplified example imagine three layers:
  • your client application
  • the Session Facade
  • your server application

  • Without the facade, your client application connects directly to your server application. So it is the responsibility of your server application to handle transactions, manage authorization and authentication, and provide multi-threading or clusterable capabilities to handle an increase in load. With the facade, your server application is just concenred with whatever business rules it exists to implement. All "infrastructure" type of concern is pushed into the facade and managed by the Container. Make sense?
     
    Mark Spritzler
    ranger
    Sheriff
    Posts: 17309
    11
    IntelliJ IDE Mac Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Beautifully put Paul.

    Mark
     
    Ram Adsumalli
    Ranch Hand
    Posts: 64
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thanks
    Paul
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!