Retrieving messages from an Amazon SQS queue - 6.4

Amazon SQS

author
Talend Documentation Team
EnrichVersion
6.4
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Amazon services (Integration) > Amazon SQS components
Data Quality and Preparation > Third-party systems > Amazon services (Integration) > Amazon SQS components
Design and Development > Third-party systems > Amazon services (Integration) > Amazon SQS components
EnrichPlatform
Talend Studio
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 .

Procedure

  1. Double-click the tSQSInput component to open its Basic settings view.
  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 button next to Edit schema to open the schema dialog box.
    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 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.