This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Facade, Business Delegate

 
Andy Smith
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is Session - facade different from each other.. as per my understanding they both are to provide simpler interface to the client
 
Lipman Li
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
business delegate usually talk to Session Facade.
 
Andy Smith
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any further explanations?
 
Piotr Gabryanczyk
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BusinessDelegate client interface to underlying business components.

For example if SessionFacade A is a business component then BusinessDelegate BDa is a helper object which implements the same interface as as A.

For client it is transparent to use A or BDa but all the JNDI lookups and remote calls are hidden in BDa.

Typical usage of BD is :

BusinessDelegateXXX xxx = new BusinesDelegateXXX();
xxx.someCall(x,y,z);

You see? No try-catch, no JNDI lookup!
 
Piotr Gabryanczyk
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is small mistake in previous post.
Should be:

XXXInterface xxx = new BusinesDelegateXXX();
xxx.someCall(x,y,z);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic