Skip to main content Skip to complementary content

Service Locator

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.

Using the Service Locator in non-OSGi environments

If you are using a standard Web application Server (like Tomcat) with ESB JAX-WS based Services, the client component of the Service Locator (locator-<>.jar) is needed to enable your CXF service or consumer to use the Service Locator. Add this JAR to the classpath or WAR file as appropriate.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!