• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Session Facade, Business Delegate  RSS feed

 
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
 
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?
 
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);
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!