Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Remote » Tutorial: Setting up a replication system using the HTTP message system and the consolidated database as the message server via Relay Server

 

Lesson 2: Configuring the Relay Server

Modify the configuration of the Relay Server to forward HTTP requests to the back-end SQL Anywhere database.

Prérequis

You must have the SYS_REPLICATION_ADMIN_ROLE system role.

For the purpose of this tutorial, the following assumptions have been made:

  1. The name of the computer where the Relay Server is running is called machine_iis, and is a Windows 2008 Server R2 running IIS 7.5.

  2. The setup instructions for the Relay Server have been followed exactly as outlined in the documentation:

  3. You have deployed the Relay Server components to Microsoft IIS 7.0 or 7.5 on Windows Server 2008/Windows Server 2008 R2. See Deploying the Relay Server components to Microsoft IIS 7.0, 7.5, or 8.0.

Contexte et remarques

Configuring the Relay Server relies only on modifying the rs.config file used by the Relay Server and then refreshing or restarting the rshost process.

 Task
  1. Modify the rs.config file used by the rshost process on machine_iis to add entries for the back-end SQL Anywhere database server acting as the message server:



    [backend_farm]
    id=srhttp_tutorial_farm
    description=SQL Anywhere Web Services farm for tutorial
    active_cookie=yes
    active_header=no
    enable=yes
    verbosity=5
    
    [backend_server]
    id= srhttp_tutorial_server
    description=SQL Anywhere Web Services server for tutorial
    farm= srhttp_tutorial_farm
    enable=yes
    verbosity=5
    
  2. From the %SQLANY16%\RelayServer\IIS\Bin64\Server directory, run the following command line to apply the configuration update:

    rshost -u -f rs.config

Résultat

The configuration of the Relay Server is modified to forward HTTP requests to the back-end SQL Anywhere database.