• 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 and Service locator

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Got this little confusion to my mind. As far as the Business Delegate and Service locator are concerned?
are they a part of web module (Application client in case of Swing App.) or EJB module.I feel it is a part of web/application client.

If it is a part of web or Application Client, then is there any difference between the implementation for each of them
(between web client and Application Client)

Bobby
 
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Bobby.

Have you read the J2EE Design Patterns book (Deepak Allur et all)? If not, then you should read about Business Delegate, Session Facade, Service Locator and other patterns.

You can read about business delegate here: http://java.sun.com/blueprints/corej2eepatterns/Patterns/BusinessDelegate.html

You can read about Service Locator here:
http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceLocator.html

Basically, you should use a Business Delegate to communicate from presentation tier to business tier components. A Business Delegate may use a Service Locator to search the JNDI namespace for EJBs.

Normally a Business Delegate is invoked from presentation tier components, like application services or struts actions.
 
We can fix it! We just need some baling wire, some WD-40, a bit of duct tape and this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic