Locator Configuration for a Client

An indirect proxy needs a locator to resolve its adapter ID or identity into endpoints. You give a proxy its locator by configuring a locator proxy, in one of several ways:

  • by explicitly configuring an indirect proxy using the ice_locator proxy method
  • by defining the name.Locator property of a proxy that the application creates with propertyToProxy
  • by calling setDefaultLocator on a communicator, after which all new proxies use the given locator by default
  • by defining the Ice.Default.Locator configuration property, which causes all proxies to use the given locator by default

To trace how the Ice runtime resolves indirect proxies, set the following properties:

Properties
Ice.Trace.Protocol=1
Ice.Trace.Locator=2

See Ice.Trace.* for more information on these properties.