Amazon SQS Versioning

The SQS connector’s behavior and features are affected by the exact version of the Amazon Web Services Java SDK version being planned to use. For each version, there are separate versions of the connector’s JCA adapter and its API.

Amazon SQS Connector version 1

This is the first version of the connector that is based on Amazon Web Services Java SDK v1.

Usage

The amazon-sqs-rar-0.8.0.rar JCA adapter has to be deployed as shown in the Installing a connector section of the Cloud Connectors overview.

Additionally, to use the connector API add the following Maven dependencies to your application’s project:

<dependency>
  <groupId>fish.payara.cloud.connectors.amazonsqs</groupId>
  <artifactId>amazon-sqs-jca-api</artifactId>
  <version>0.8.0</version>
  <type>jar</type>
  <scope>provided</scope>
</dependency>

<dependency>
  <groupId>com.amazonaws</groupId>
  <artifactId>aws-java-sdk-sqs</artifactId>
  <version>[2.25.6,)</version>
  <type>jar</type>
  <scope>provided</scope>
</dependency>
These dependencies have a provided scope since the types within this dependency are globally available to every application deployed to Payara Micro after the amazon-sqs-rar-0.8.0.rar has been deployed.
It can be confusing, but disregard the version of the artifact, as it constitutes a sequential development of the "first version" of the connector’s artifact.

Amazon SQS Connector version 2

This is the second version of the connector that is based on Amazon Web Services SDK v2.

Usage

The amazon-sqs-rar-1.1.0.rar JCA adapter can be downloaded from Maven Central.

Additionally, to use the connector API add the following Maven dependencies to your application’s project:

<dependency>
    <groupId>fish.payara.cloud.connectors.amazonsqs</groupId>
    <artifactId>amazon-sqs-jca-api</artifactId>
    <version>1.1.0</version>
    <type>jar</type>
    <scope>provided</scope>
</dependency>

<dependency>
    <groupId>software.amazon.awssdk</groupId>
    <artifactId>sqs</artifactId>
    <version>[2.18.17,)</version>
    <type>jar</type>
    <scope>provided</scope>
</dependency>
The amazon-sqs-jca-api artifact has to be installed to your local Maven repository first.