• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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.
 
I guess everyone has an angle. Fine, what do you want? Just know that you cannot have this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic