To continuously listen to a message from a queue

To continuously listen a message from one queue and send it to another queue.

  1. In the Flows workspace, select Source nodes type from the Palette and drag and drop it to the canvas.
  2. Right click on the Source node and select Settings.
  3. 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.
  4. Specify the Action properties. Select the source queue which will read the message.
  5. Select Schema Select Type field as Plaintext.
  6. Click OK.
  7. Select Target nodes type from the Palette and drag and drop it to the canvas.
  8. Right click on the Target node and select Settings.
  9. 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.
  10. Specify the Action properties. Select the target queue which will send the message.
  11. Select Schema Select Type field as Plaintext.
  12. Click OK.
  13. Connect nodes by dragging from the output terminal of one node to the input terminal of another node.
  14. Right click on the Source node and select Enable Watch.
  15. Click on the Save icon.
    Flow definition gets saved.
  16. Deploy the flow to the server.
  17. 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.