Prerequisites for working with JMS and Amazon SQS - Amazon Simple Queue Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Prerequisites for working with JMS and Amazon SQS

Before you begin, you must have the following prerequisites:

  • SDK for Java

    There are two ways to include the SDK for Java in your project:

    • Download and install the SDK for Java.

    • Use Maven to get the Amazon SQS Java Messaging Library.

      Note

      The SDK for Java is included as a dependency.

      The SDK for Java and Amazon SQS Extended Client Library for Java require the J2SE Development Kit 8.0 or later.

      For information about downloading the SDK for Java, see SDK for Java.

  • Amazon SQS Java Messaging Library

    If you don't use Maven, you must add the amazon-sqs-java-messaging-lib.jar package to the Java class path. For information about downloading the library, see Amazon SQS Java Messaging Library.

    Note

    The Amazon SQS Java Messaging Library includes support for Maven and the Spring Framework.

    For code samples that use Maven, the Spring Framework, and the Amazon SQS Java Messaging Library, see Working Java examples for using JMS with Amazon SQS standard queues.

    <dependency> <groupId>com.amazonaws</groupId> <artifactId>amazon-sqs-java-messaging-lib</artifactId> <version>1.0.4</version> <type>jar</type> </dependency>
  • Amazon SQS Queue

    Create a queue using the Amazon Web Services Management Console for Amazon SQS, the CreateQueue API, or the wrapped Amazon SQS client included in the Amazon SQS Java Messaging Library.