Fixing typo in stream definition TCP Text publisher
@@ -9,16 +9,17 @@ Prerequisites:
1) Save this sample
Executing the Sample:
- 1) Open a terminal and issue command from the {WSO2SPHome}/samples/sample-clients/tcp-server and run 'ant' command with argument -Dtype=text.
+ 1) Open a terminal and issue command from the {WSO2SPHome}/samples/sample-clients/tcp-server and run ant command as follows.
+ ant -Dtype=text
2) Start the Siddhi application by clicking on 'Run'
3) If the Siddhi application starts successfully, the following messages would be shown on the console
* PublishTcpInTextFormat.siddhi - Started Successfully!
- * 'tcp' sink at 'LowProducitonAlertStream' stream successfully connected to 'localhost:9892'.
+ * 'tcp' sink at 'LowProductionAlertStream' stream successfully connected to 'localhost:9892'.
4) To open event simulator by clicking on the second icon or press Ctrl+Shift+I.
5) In the Single Simulation tab of the panel, select values as follows:
Siddhi App Name : PublishTcpInTextFormat
Stream Name : SweetProductionStream
- 6) In the name field and amount fields, enter 'toffee', '45.24' respectively and then click Send to send the event.
+ 6) In the 'name' and 'amount' fields, enter 'toffee', '45.24' respectively and then click Send to send the event.
7) Send some more events.
8) See the output in the terminal of {WSO2SPHome}/samples/sample-clients/tcp-server.You will get output as given below:
[java] [org.wso2.sp.tcp.server.TCPServer] : Event{timestamp=1512446413468, data=[toffee, 45.25], isExpired=false}
@@ -40,11 +41,11 @@ Executing the Sample:
@sink(type='tcp', url='tcp://localhost:9892/LowProducitonAlertStream',
@map(type='text'))
- define stream LowProducitonAlertStream (name string, amount double);
+ define stream LowProductionAlertStream (name string, amount double);
from SweetProductionStream
select *
-insert into LowProducitonAlertStream;
+insert into LowProductionAlertStream;
