Configuring the Sample Adapter

Configure the settings for the Sample Input and Output adapter using the ESP Server and Studio.

  1. Start the ESP Server, and use the command prompt to set your directory to Sybase\ESP-5_1\cluster\examples on Windows, or Sybase/ESP-5_1/cluster/examples on Linux.
  2. Set your ESP folder to %ESP_HOME% on Windows, or $ESP_HOME on Linux.
  3. To add projects, execute this command.
    Using Windows:
    %ESP_HOME%\bin\esp_server.exe --cluster-node node1.xml --cluster-log-properties node1.log.properties
    Using Linux:
    $ESP_HOME/bin/esp_server --cluster-node node1.xml --cluster-log-properties node1.log.propertie
  4. In the examples folder, configure the adapter.xml file:
    1. Enter an address for espProjectUri.
    2. Enter a user name for espUser.
    3. Enter a password for espPassword.
    4. Enter a sample input data for input.
    5. Enter an output from the subscriber process for output.
  5. Start Studio, and select File > New > Project... > Browse.... Open the folder Sybase\ESP-5_1\adapters\examples\managed on Windows, or Sybase/ESP-5_1/adapters/examples/managed on Linux.
  6. Open the model.ccl file, and click the Compile Project (F7) icon on the Studio toolbar. The file is compiled into the model.ccx file.
  7. Open the Run-Test perspective, add the server URL "localhost:19011", and connect.
  8. Right-click on the URL server, select Create a New Workspace, and enter "default" for the name.
  9. Right-click on the workspace named "default", and select Load Project.
  10. Browse to the folder of the compiled file to select the model.ccx file. In Studio, the project appears as "model" under the "default" workspace.
  11. Right-click on the "model" project, and select Start Project.