...
Example Input Source definition as bellowbelow.
Code Block | ||||
---|---|---|---|---|
| ||||
@Source(type = 'http', receiver.url='http://localhost:8006/productionStream', basic.auth.enabled='false', @map(type='json', @attributes( name='$.name', amount='$.quantity'))) define stream SweetProductionStream (name string, amount double); |
...
Info | |||||
---|---|---|---|---|---|
A source could also be defined externally, and referred to from several siddhi applications as described below,Multiple sources can be defined in the
You can refer to a source configured in the <SP HOME>/conf/<PROFILE>/deployment.yaml file from a Siddhi application as shown in the example below. |
Source types
WSO2 SP supports following source types out of the box, to receive events via corresponding transports. Click on the required source type for instructions to configure a source to receive events via them.
...