Example: Sending a Subscription Request

Send a subscription request to the adapter, and see a stream record from Event Stream Processor in a Web browser.

Prerequisites
Task
  1. Edit the adapter.sh script.
  2. Set the JAVA_HOME environment variable to the directory where the Java Runtime Environment (JRE) is installed.
  3. Start Event Stream Processor.
    Operating System Step
    UNIX Open a terminal window:
    1. Start the example cluster: start_server_cluster.sh
    2. Start the project on the cluster: start_project.sh
    Windows Open a command window:
    1. Start the example cluster: start_server_cluster.bat
    2. Add project to the cluster, and start it on the cluster: start_project.bat
  4. Start the adapter.
    Operating System Step
    UNIX Open a terminal window and enter:

    ./adapter.sh

    Windows Open a command window and enter:

    adapter.bat

  5. Wait five to ten seconds for the adapter to initialize.
  6. Upload a stream record.
    Operating System Step
    UNIX Open a terminal window and enter:

    ./upload.sh

    Windows Open a command window and enter:

    upload.bat

  7. Point the Web browser to the example.swf file. For example:
    http://localhost:80/sybase/example.swf
  8. You see this stream record in the browser window:
    Stream = Stream1
    Opcode = i
    Symbol = IBM
    Price = 12.50