• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Business Delegate and Service locator

 
Bobby Sh
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • 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
 
Cleuton Sampaio
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic