Example: Subscribing and Publishing

Subscribe to a subject, upload an outbound record on that subject to Event Stream Processor, send the message to the Rendezvous server, and then receive and publish it as an inbound record.

Prerequisites
You have a network connection to a running instance of the TIBCO Rendezvous server. Operate this example from the command line.
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 the outbound record.
    Operating System Step
    UNIX Open a terminal window and enter:

    ./upload.sh

    Windows Open a command window and enter:

    upload.bat

  7. Start the Event Stream Processor subscriber utility to view data stream content.
    Operating System Step
    UNIX Open a terminal window and enter:

    ./esp-subscribe.sh

    Windows Open a command window and enter:

    esp-subscribe.bat

  8. Note the inbound record published to Event Stream Processor.