Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic