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- Set the username and password for the adapter:
- Edit adapter.xml.
- In the <User> and <Password> elements, enter
sybase.
- Set the username and password in the example environment:
Operating System |
Step |
UNIX |
- Edit the set_example_env.sh script
- Set the ADAPTER_EXAMPLE_USERNAME and ADAPTER_EXAMPLE_PASSWORD
variables to sybase.
|
Windows |
- Edit the set_example_env.bat script
- Set the ADAPTER_EXAMPLE_USERNAME and ADAPTER_EXAMPLE_PASSWORD
variables to sybase.
|
- Edit the start_adapter.sh
script.
- Set the JAVA_HOME environment variable to the directory where
the Java Runtime Environment (JRE) is installed.
- Start Event Stream Processor.
Operating System |
Step |
UNIX |
Open a terminal window: - Start the example cluster:
start_node.sh
- Start the project on the cluster:
start_project.sh
|
Windows |
Open a command window:- Start the example cluster:
start_node.bat
- Add project to the cluster, and start it on the
cluster:
start_project.bat
|
- Start the adapter.
Operating System |
Step |
UNIX |
Open a terminal window and enter: start_adapter.sh
|
Windows |
Open a command window and enter: start_adapter.bat
|
- Wait five to ten seconds for the adapter to initialize.
- 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
|
- 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
|
- Note the inbound record published to
Event Stream Processor.