This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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);
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session Facade, Business Delegate
 
Similar Threads
session facade and message facade
Session Facade
Confused in Design Patterns
business delegate
limit the no of sessions with struts.