AWS SDK for Java
Developer Guide

Amazon SQS Examples Using the AWS SDK for Java

This section provides examples of programming Amazon SQS using the AWS SDK for Java 2.0.

The following examples include only the code needed to demonstrate each technique. The complete example code is available on GitHub. From there, you can download a single source file or clone the repository locally to get all the examples to build and run.