Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Facade and Session Facade

 
Saif Kamaal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All,

Well this is the closet forum i could get to post my question so please excuse me if it is in wrong place.

Can anyone mention the types of facade design pattern available ? Also what is the diff between Facade and Session Facade ?

PS : My application is getting developed in ADF

thnks
 
Santhosh ayiappan
Ranch Hand
Posts: 80
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Below URL would be a starter for Facade Pattern.

Facade Pattern
 
Saif Kamaal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well thnks for the reply, but i cannot find what i am looking for. My point is, is Session Facade and Facade the same. If not and Session Facade is a special kind of Facade then what are the other kind of facades available.

thnks
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Facade design pattern published by the GOF and the Session Facade pattern published by Sun Microsystems are not the same. They are similar, but they are not the same. There could be other similar design patterns in existence which are either proprietary or public information.
 
Murali Ranga
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Facade hides all the complexities of the system.
Clients invoke the interface but application hides all the complexity like creating database connections, processing business logic etc
On the same principle Session Fa├žade is working for enterprise applications for interaction between higher level component and low level components .
Basically hiding the complexities of the system(low level components ) and providing an interface( higher level component )to the client
(You can see on Sun website)
For Example
Higher level component can be Session Bean
Low level components can be Entities.
Client invokes the method on a Session Bean that session bean calls all the other beans(Entities)
Client knows only Interface method and all the complexity handled in the session bean invoking other beans
Example some bank Transactions : has to be done in a single transaction
Means with one request to the server all the processing will be completed and response will be returned.
I am not sure about types of facade design pattern
Think about JMS Messaging
Message is received using publish/subscribe and while processing the message it will interact with other services, database objects/Entities to complete the request.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic