• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

business delegate

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Definitely yes!
And the session facade too.
 
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic