The Service Locator provides service consumers with a mechanism to register, and also discover service endpoints at runtime, thus isolating consumers from the knowledge about the physical location of the endpoint. Talend ESB uses Apache ZooKeeper as its service locator server. Zookeeper can be used either in standalone, therefore it is located within the Talend ESB distribution at <TalendRuntimePath>/zookeeper or as an OSGi feature in the Talend Runtime Container. Please see http://zookeeper.apache.org/ for more information about ZooKeeper. Also note the examples folder of the Talend ESB distribution provides a "locator" example you can learn from.
In this section, you learn how to use the Service Locator via a simple greeting example.