Running the Subscriber Example

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

  1. Set the user name and password properties in the ESPOPTIONS.ini file, located in the examples directory of your ESP installation, to sybase.
  2. Set the user name and password in the example environment:
    Operating System Step
    Windows
    1. Edit the set_example_env.bat script
    2. Set the ADAPTER_EXAMPLE_USERNAME and ADAPTER_EXAMPLE_PASSWORD variables to sybase.
    UNIX
    1. Edit the set_example_env.sh script
    2. Set the ADAPTER_EXAMPLE_USERNAME and ADAPTER_EXAMPLE_PASSWORD variables to sybase.
  3. Start the 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 subscriber.rtv
    UNIX $RTVIEWADAPTER_HOME/bin/start_viewer.sh $RTVIEWADAPTER_HOME/examples subscriber.rtv
    Note: You can start the RTView Display Builder by replacing the start_viewer command with the start_builder command.
  5. Use the esp_convert and esp_upload utilities to load input.xml data, convert XML data to stream data, and feed this data into target streams.
    Operating System Step
    Windows cd %RTVIEWADAPTER_HOME%\examples

    upload.bat

    UNIX cd $RTVIEWADAPTER_HOME/examples

    upload.sh

  6. (Optional) Verify that data is successfully loaded into streams.
    Operating System Step
    Windows cd %RTVIEWADAPTER_HOME%\examples

    subscribe.bat

    UNIX cd $RTVIEWADAPTER_HOME/examples

    subscribe.sh

  7. Observe the stream data that displays in the RTView Display Viewer.