Running an Adapter Example

Use the sample content within the $ESP_HOME/adapters/framework/examples directory to run an adapter example.

Prerequisites
  1. Stop any other external adapter that is using one of the transporter or formatter modules provided by SAP.
  2. Back up the $ESP_HOME/adapters/framework/config/modulesdefine.xml file.
  3. Copy the file $ESP_HOME/adapters/framework/examples/modulesdefine.xml to the $ESP_HOME/adapters/framework/config directory.
  4. Edit the set_example_env.bat or set_example_env.sh script and the adapter_config.xml file for each example to specify correct values for the username and password parameters. Note that if you run the project against the node started by the set_example_env.bat or set_example_env.sh script, you can find the username and password in $ESP_HOME%/cluster/examples/csi_local.xml. The default user is sybase and the default password is sybase.
Task

These steps are applicable to all examples aside from the schema discovery example located in the $ESP_HOME/adapters/framework/examples/discover directory.

  1. Start the cluster manager by executing start_node.bat or start_node.sh.
  2. Start the ESP project by executing start_project.bat or start_project.sh.
  3. Start a subscription by using one of the various subscribe*.bat/subscribe*.sh or statistic_subscribe*.bat/statistic_subscribe*.sh scripts to validate the results of the adapter.
  4. Start the adapter by running the start_adapter.bat or start_adapter.sh commands.
  5. Run one of the examples in the $ESP_HOME/adapters/framework/examples directory.
Next
Restore the $ESP_HOME/adapters/framework/config/modulesdefine.xml file.