This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Session Facade, Business Delegate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Session Facade, Business Delegate" Watch "Session Facade, Business Delegate" New topic
Author

Session Facade, Business Delegate

Andy Smith
Ranch Hand

Joined: Sep 28, 2003
Posts: 239
How is Session - facade different from each other.. as per my understanding they both are to provide simpler interface to the client


Share Knowledge to gain it.
SCJP 2, SCWCD 2, SCDJWS, IBM 141 (In Progress), IBM 486 (Next)
Lipman Li
Ranch Hand

Joined: May 02, 2002
Posts: 122
business delegate usually talk to Session Facade.
Andy Smith
Ranch Hand

Joined: Sep 28, 2003
Posts: 239
Any further explanations?
Piotr Gabryanczyk
Greenhorn

Joined: Oct 27, 2003
Posts: 2
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

Joined: Oct 27, 2003
Posts: 2
There is small mistake in previous post.
Should be:

XXXInterface xxx = new BusinesDelegateXXX();
xxx.someCall(x,y,z);
 
GeeCON Prague 2014
 
subject: Session Facade, Business Delegate