• Post Reply Bookmark Topic Watch Topic
  • New Topic

Questionon SCWCD

 
Amol Umrani
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone tell me what r the differencebetween business delegate and service locator design pattern.
 
Mishra Anshu
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may wish to google for detailed explanation.

A service Locator pattern, suggests you to make a class which is responsible for all the JNDI look-ups of your resources. So, the classes looking for any resource, registered in JNDI, will just call the Service Locator to give that object to it.

A business delegate reduces coupling between presentation-tier clients and business services. It hides the underlying implementation details of the business service, such as lookup (for which it will use Service Locator ) and access details of the EJB architecture.

Hope this helps !
 
Amol Umrani
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for giving me such a nice explanation
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!