August 16, 2023

Retrieving messages from an Amazon SQS queue – Docs for ESB 6.x

Retrieving messages from an Amazon SQS queue

Configure the tSQSInput component
and the tLogRow component to retrieve all messages from
an existing Amazon SQS queue and display the retrieved messages on the console of

Talend Studio
.

  1. Double-click the tSQSInput component
    to open its Basic settings view.

    amazon_sqs_tsqsinput_basic.png

  2. Specify the connection details required to access Amazon SQS. In this
    example, select the Use an existing connection
    check box and from the Component List drop-down
    list displayed, select the connection component to reuse its connection details you
    have already defined.
  3. In the Queue URL field, enter the name
    for the queue from which the messages will be retrieved. In this example, it is
    talend.
  4. Click the

    components-button_three_dot.png

    button next to Edit schema to
    open the schema dialog box.

    amazon_sqs_tsqsinput_schema.png

    You can see the schema of the tSQSInput component
    is predefined with four columns of String type: MessageId,
    ReceiptHandle, MD5OfBody and
    Body.
  5. Click the

    plus_button.png

    button to add five columns of String type, including four
    Amazon SQS attributes ApproximateFirstReceiveTimestamp,
    ApproximateReceiveCount, SenderId and
    SentTimestamp and one customized attribute
    Creator.

  6. Click OK to save the changes and close
    the schema dialog box.
  7. Select the Read standard attributes and Read custom user attributes check boxes to retrieve the
    value of four Amazon SQS attributes and one customized user attribute along with
    each message.
  8. Double-click the tLogRow component to
    open its Basic settings view, and then select
    Table (print values in cells of a table) in the
    Mode area for better readability of the
    result.

    amazon_sqs_tlogrow_basic.png


Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x