Documentation Center

Registering the Session-enabled Content Service as a Capability

If you already used the auto-register switch to register this Server Role as a Capability when you installed it as a standalone microservice, you can skip this task. If you did not, you can make this microservice discoverable through the Discovery Endpoint by hand by adding it as a Capability to the Discovery Service's Storage Layer configuration file and update the Capability registry by rerunning the Discovery Service registration tool. Note that the service registers itself as a Content Service.

Procedure

  1. Navigate to the configuration location of your Discovery Service installation.
  2. From this location, copy cd_storage_conf.xml to the location in which you saved the Discovery Service registration tool (the file discovery-registration.jar), and open it for editing.
  3. Find the ConfigRepository section and its Roles subsection.
  4. Find the Role element with its Name attribute set to ContentServiceCapability.
  5. In this Role element, set the Url attribute to http://HOST:PORT/content.svc, where http://HOST:PORT identifies the base URL of the Session-enabled Content Service. By default, this microservice runs on port 8081.
  6. Save and close cd_storage_conf.xml.
  7. Open a command prompt.
  8. Enter the following command:
    java -jar discovery-registration.jar update
    The tool registers the configured Capabilities.