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.
 
- The Web server and the policy server must be running on the same machine on which the adapter is installed.
 
- Copy the example.swf file from the adapter example directory to the content area of
the Web server.
 
- 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.
 
- The Flex Server port default is 23456.
 
- The Web
browser can be used on the same machine or on a different machine.
 
 
Task- Edit the 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_server_cluster.sh
 
-  Start the project on the cluster: start_project.sh 
 
 
 | 
| Windows | 
 Open a command window:-   Start the example cluster: start_server_cluster.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:  ./adapter.sh 
 | 
| Windows | 
 Open a command window and enter: 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