Show TOC

Running the Publisher ExampleLocate this document in the navigation structure

Use the RTView Display Viewer to run the provided publisher example that comes with the RTView adapter.

Prerequisites

The cluster database stores configuration information. Ensure that the cluster is running, so that the adapter can interact with the projects on the cluster.

Procedure

  1. Set the user name and password properties in the ESPOPTIONS.ini file, located in the examples directory of your ESP installation, to the desired user name/password combination..
  2. Set the username and password in the example environment:
    Operating System Step
    UNIX
    1. Edit the set_example_env.sh script
    2. Set the ADAPTER_EXAMPLE_USERNAME and ADAPTER_EXAMPLE_PASSWORD variables to the desired user name/password combination.
    3. If SSL is enabled, set ADAPTER_EXAMPLE_CLUSTER_NODE_PROTOCOL to esps. If it is disabled, set it to esp.
    Windows
    1. Edit the set_example_env.bat script
    2. Set the ADAPTER_EXAMPLE_USERNAME and ADAPTER_EXAMPLE_PASSWORD variables to the desired user name/password combination..
    3. If SSL is enabled, set ADAPTER_EXAMPLE_CLUSTER_NODE_PROTOCOL to esps. If it is disabled, set it to esp.
  3. Start Event Stream Processor with the provided rtviewadapter.ccx model, located in %RTVIEWADAPTER_HOME%\examples, and use port 19011.
    Operating System Step
    Windows
    1. Enter cd %RTVIEWADAPTER_HOME%\examples.
    2. Start the example cluster: start_node.bat
    3. Add project to the cluster, and start it on the cluster: start_project.bat
    UNIX
    1. Enter cd $RTVIEWADAPTER_HOME/examples.
    2. Start the example cluster: start_node.sh
    3. Start the project on the cluster: start_project.sh
  4. Start the RTView Display Viewer from the command line:
    Operating System Step
    Windows %RTVIEWADAPTER_HOME%\bin\start_viewer.bat %RTVIEWADAPTER_HOME%\examples publisher.rtv
    UNIX $RTVIEWADAPTER_HOME/bin/start_viewer.sh $RTVIEWADAPTER_HOME/examples publisher.rtv
    Note You can start the RTView Display Builder by replacing the start_viewer command with the start_builder command.
  5. Follow the on-screen instructions.
  6. Verify that data has been successfully published to the Server.
    Operating System Step
    Windows cd %RTVIEWADAPTER_HOME%\examples run_sub.bat
    UNIX cd $RTVIEWADAPTER_HOME/examples run_sub.sh