Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Outline

Amazon SQS Sample

This is a sample that demonstrates how to make basic requests to Amazon SQS using the AWS SDK for Java.

Prerequisites

  • You must have a valid Amazon Web Services developer account.
  • Requires the AWS SDK for Java. For more information on the AWS SDK for Java, see http://aws.amazon.com/sdkforjava.
  • You must be signed up to use Amazon SQS. For more information on Amazon SQS, see http://aws.amazon.com/sqs.

Running the Sample

The basic steps for running the Amazon SQS sample are:

  1. Create a credentials file in the location ~/.aws with name "credentials".

  2. Under the default profile fill in your Access Key ID and Secret Access Key:

[default]
aws_access_key_id =
aws_secret_access_key =
  1. Save the file.

  2. Run the SimpleQueueServiceSample.java file, located in the same directory as the properties file. The sample prints information to the standard output.

NOTE: The sample also includes an Ant build.xml file to run the sample.

See the Amazon SQS Getting Started Guide for step-by-step instructions on running this sample.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.