Show TOC

Running an Adapter ExampleLocate this document in the navigation structure

Use the sample content within the $STREAMING_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 $STREAMING_HOME/adapters/framework/config/modulesdefine.xml file.
  3. Copy $STREAMING_HOME/adapters/framework/examples/modulesdefine.xml to the $STREAMING_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 user name and password parameters.

Context

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

Procedure

  1. Start the cluster manager by executing start_node.bat or start_node.sh.
    Note To use the start_node script, you must first create a cluster database and deploy the example cluster to it. See Using the Cluster Configuration Example in the SAP Event Stream Processor: Examples Guide for more information.
  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 $STREAMING_HOME/adapters/framework/examples directory.

Next Steps

Restore the $STREAMING_HOME/adapters/framework/config/modulesdefine.xml file.