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 Architect Certification (SCEA/OCMJEA) and the fly likes Session facade 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 » Architect Certification (SCEA/OCMJEA)
Bookmark "Session facade " Watch "Session facade " New topic
Author

Session facade

vikram kumar
Ranch Hand

Joined: Aug 01, 2005
Posts: 58

Hi,

Is it allowed to invoke a business delegate from a Session Bean which acts as a session facade?, in other way can a session facade be a client for Bussiness Delegate?. Kindly share your thoughts.

Thanks,
kumar

Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Business Delegate is for encapsulate business service, so I see no point to use business delegate from session facade.


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
vikram kumar
Ranch Hand

Joined: Aug 01, 2005
Posts: 58

Ok Kengkaj I agree what you said, so business delegate will have some business service to be invoked ny its claints, in that case why cant a session bean which acts as a Session facade inovoke the Business delegate to avail a business service please explain. Please note the below point which I have taken from the http://java.sun.com/blueprints/corej2eepatterns/Patterns/BusinessDelegate.html

"Finally, it should be noted that this pattern could be used to reduce coupling between other tiers, not simply the presentation and the business tiers"

Thanks,
Kumar
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Session facade is already in business tier, it is no point to use Session facade to use business delegate to delegate to other business services which are also in business tier.

If I misunderstood anything, please tell me.
vikram kumar
Ranch Hand

Joined: Aug 01, 2005
Posts: 58

Ok, Could please tell me what are all the possible clients for a Business Delegate?
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Taken from the link, clients can be web clients (Servlets), rich clients (such as Swing, SWT/JFace), devices (not sure about this).
vikram kumar
Ranch Hand

Joined: Aug 01, 2005
Posts: 58

If a servlet which almost has the same responsibilities of an session bean can be a client for a business delegate why not the session bean?
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Servlet and Session Bean is quite different.
Servlet is just for accept request and response, it should not contain any business logic. Moreover they are in different tier, Servlets are in web tier while Session Beans are in business tier.

We can also implement caching in business delegate to reduce network traffic.

Anyway, try to read the link that you posted, it explains well.
 
wood burning stoves
 
subject: Session facade
 
Similar Threads
best possible design pattern for a scalable enterprise application
Session Facade, Business Delegate
Session Facade vs. Business Delegate
Difference between Session Facade and Business Delegate
Session Facade Vs business delegate