Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

business delegate

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the business delegate considered a componet to show in a component diagram?
 
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Definitely yes!
And the session facade too.
 
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Cades component diagrams, the servlets are also the business delegates.

Ray
 
Peter Bergoff
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ray,

Are you saying that the Cade's Front Controllers have the business delegate embedded in them?
 
Ramon Gill
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. A clue is that it uses a service locator to look up the session bean.

You often find components can be in many patterns. It is probably a singleton as well. Also is part of MVC.It would be nice if there were more comments in Cades diagams explaining these things.

Ray
 
Peter Bergoff
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That sounds good to me. I also wish Cade would explain a little more about his design.

I don't suppose anyone knows of documentation discussing combining J2EE patterns - specifically presentation patterns like the Front Controller and Business Delegate?
 
Ramon Gill
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter,
I found that the best way of learning about how patterns are used in architecture and design was to read up on struts. There are many books (some free) and articles around on the net. Struts uses lots of patterns and it really helped me understand.

Ray
 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A lot of questions rising after a quick look at this pattern...

I guess we need a business delegate also for the swing client? There's not much sense in swing client talking to a servlet? Therefore is it a good idea to present a common business delegate component? (Between a servlet and a session facade and on the other hand between a swing client and the session facade?).
 
Ramon Gill
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Cades component diagrams, I would have a separate servlet for a client GUI.
The servlet would act as a controller and Business Delegate. The Blueprints recommend having separate controllers for different clients.

Ray
 
Peter Bergoff
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Ramon Gill:
Yes. A clue is that it uses a service locator to look up the session bean.

You often find components can be in many patterns. It is probably a singleton as well. Also is part of MVC.It would be nice if there were more comments in Cades diagams explaining these things.

Ray



Hi Ray,

I'm starting to doubt that Cade actually "implicitly" uses the business delegate pattern in his example. One reason is that he has more than one controller in his example - CatalogController and OrderController. Wouldn't this defy the business delegate pattern which is a single point to put all necessary code for communicating with the business tier?
 
Your mind is under my control .... your will is now mine .... read this tiny ad
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic