The Service Locator

ServiceLocator is the primary entry point into HDR and helps create HDR sessions. Although ServiceLocator is used in the same way for remote or local access to HDR, its usage varies depending on whether it is used inside or outside of a container. Use it for the following functions:

  • Establishing HDR sessions
  • Configuring the access mode (local or remote)
  • Retrieving handles to services through JNDI (Java Naming and Directory Interface)

Each ServiceLocator is associated with a single HDR session. Each HDR session defines an application-level context in which processing occurs. Services retrieved through a particular ServiceLocator instance receive that ServiceLocator session as their own. A ServiceLocator is used to establish a new HDR session.