• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Location of ServiceLocator

 
Sanz Vai
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A BusinessDelegate uses ServiceLocator to locate Services. BusinessDelegate and ServiceLocator are client side components. But what is a Service1 needs to locate Service2. Will it use the same ServiceLocator or a different one that's in the Services tier.
 
Ramon Gill
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sanz,
You can have different service locators in client, web and EJB tiers. In the case you mentioned, you would use a EJB service locator, assuming service1 & service2 are in a EJB tier.

Ray
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...and let's not forget a ServiceLocator can be combined with a BusinessDelegate, if delegates are the only ones that need to locate services.
 
Sanz Vai
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, how many times do we show ServiceLocator component in our component diagram? Should we show it twice? In sequence diagram, we show 2 ServiceLocator by showing 2 different instances of the same class. How about in component diagram?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic