To continuously listen to a message from a queue
To continuously listen a message from one queue and send it to another queue.
- In the Flows workspace, select Source nodes type from the Palette and drag and drop it to the canvas.
- Right click on the Source node and select Settings.
- Select Use Command Line option or Use Existing Connection option if you want to reuse the already created connection. If you do not want to use existing connection, make Use Existing Connection option false.
- Specify the Action properties. Select the source queue which will read the message.
- Select Schema Select Type field as Plaintext.
- Click OK.
- Select Target nodes type from the Palette and drag and drop it to the canvas.
- Right click on the Target node and select Settings.
- Select Use Command Line option or Use Existing Connection option if you want to reuse the already created connection. If you do not want to use existing connection, make Use Existing Connection option false.
- Specify the Action properties. Select the target queue which will send the message.
- Select Schema Select Type field as Plaintext.
- Click OK.
- Connect nodes by dragging from the output terminal of one node to the input terminal of another node.
- Right click on the Source node and select Enable Watch.
-
Click on the Save icon.
Flow definition gets saved.
- Deploy the flow to the server.
-
You can now send and receive messages on Amazon SQS source queue and target queue
respectively.
To disable this functionality, select Disable Watch in flows.
Once you push the message from the Amazon SQS source queue the flows will run in Design Server and the message will be sent to the Amazon SQS
target queue. And you can continuously listen to the messages from one queue to another
queue.