Use the sample content within the
$STREAMING_HOME/adapters/framework/examples
directory to run an adapter example.
Prerequisites
- Stop any other external adapter that is using one of the
transporter or formatter modules provided by
SAP.
- Back up the
$STREAMING_HOME/adapters/framework/config/modulesdefine.xml
file.
- Copy
$STREAMING_HOME/adapters/framework/examples/modulesdefine.xml
to the
$STREAMING_HOME/adapters/framework/config
directory.
- 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
- 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.
- Start the ESP project by executing
start_project.bat or start_project.sh.
- 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.
- Start the adapter by running the start_adapter.bat or
start_adapter.sh commands.
- 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.