posted 19 years ago
The point still is, shouldn't the Service Locator encapsulate the invoker from the nature of the service? And how is the invoker to know which to use? Shouldn't the lookup be encapsulated, and a setting be made available, so that in a sticky situation with the service and the service requestor being local you can call the service while being unaware that a local lookup is being used, and when the application becomes distributed, equally unimpacted by that change as the Service Locator does what it says, i.e. finds the service.
From a responsibilities perspective, who should be aware if the interface is local or remote - the Business delegate or the Service Locator?
Looking for input as I am implementing this right now....