Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space FUNCTDEV and version SVC2023.1

...

For

Amazon Simple Queue Service (SQS) and other JMS providers where building JMS ConnectionFactory through JNDI lookup is difficult.

Minimum required JARs

Amazon SQS java client JARs (available on Maven Central at https://repo1.maven.org/maven2/com/amazonaws/):

  • amazon-sqs-java-messaging-lib-<version>1.1.x.jar
  • aws-java-sdk-sqs-<version>1.12.x.jar
  • aws-java-sdk-core-<version>1.12.x.jar
  • httpclient-<version>.jar
  • aws-java-sdk-sts-<version>.jar

Apache httpclient dependencies:

  • httpcore-<version>1.12.x.jar

WSO2 carbon-jndi JAR (available on the WSO2 Maven repository at https://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/jndi/org.wso2.carbon.jndi/):

org.wso2.carbon.jndi-<version>.jar

Factory class

InMemoryInitialContextFactory from the WSO2 carbon-jndi project. See Creating the JMS ConnectionFactory Object.

Connecting to AWS

Use I AM user roles for connecting to AWS. Refer to the following Amazon documentation for details:

Learn more

https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/getting-started.html

https://github.com/awslabs/amazon-sqs-java-messaging-lib/tree/master/src/main/java/com/amazon/sqs/javamessaging

...