Send a subscription request to the adapter, and see a stream record
from Event Stream Processor in a Web browser.
Prerequisites
- Install a Web server (port default is 80), Flash policy server (default is 843), and a Web browser with the Flash plug-in.
- SAP recommends that the Web server and the policy
server run on the same machine on which the adapter is installed.
- If the Web server and policy server are running on a different machine than the one
on which the adapter is installed, ensure the ports listed above are open for TCP
connections from the machine where the Web browser is running.
- Copy the example.swf file from the adapter example directory to the content area of
the Web server.
- The Flex Server port default is 23456.
- The Web
browser can be used on the same machine or on a different machine.
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 a stream record.
Operating System |
Step |
UNIX |
Open a terminal window and enter: ./upload.sh
|
Windows |
Open a command window and enter: upload.bat
|
- Point the Web browser to the example.swf file. For example:
http://localhost:80/sybase/example.swf
- You see this stream record in the browser window:
Stream = Stream1
Opcode = i
Symbol = IBM
Price = 12.50