Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.31 KB

File metadata and controls

44 lines (30 loc) · 1.31 KB

Java example SQS client

This is a simple example client for writing and reading to and from an AWS managed SQS server, written in Java.

This example code has been sourced from the AWS documentation for interacting with SQS queues in Java.

Getting Started

Installation pre-requisites for running this demo are:

  • Java
  • Maven build and project management tool
  • Docker for running local demo
  • AWS CLI
  • Make for using the pre-built make file

Additionally, you will need to configure your LocalStack after installation. This is done with the command:

aws configure --profile localstack

Then enter your settings as follows:

AWS Access Key ID: 123
AWS Secret Access Key: 123
Default region name: ap-southeast-2
Default output format:

Running the Demo

Once all the installations are complete and the localstack profile has been configured you can run the demo using

make demo

This will:

  • Run the localstack SQS server in Docker
  • Install necessary packages
  • Run either the local or remote demo depending on which function is called in the main function of the App