Use the sample content within the
$ESP_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
$ESP_HOME/adapters/framework/config/modulesdefine.xml
file.
- Copy the file
$ESP_HOME/adapters/framework/examples/modulesdefine.xml
to the $ESP_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 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.
- Start the cluster manager by executing start_node.bat or
start_node.sh.
- 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
$ESP_HOME/adapters/framework/examples directory.
Next
Restore the
$ESP_HOME/adapters/framework/config/modulesdefine.xml
file.