How to connect Amazon SQS using custom scripting?

Document created by Pavan_Sirasanambedu Employee on Mar 11, 2015Last modified by dave_lesshafft on Mar 1, 2016
Version 2Show Document
  • View in full screen mode
General guidelines to connect Amazon SQS queue using custom scripting.
Unfortunately there is no direct support using JMS connector.
Instead of JMS connector use custom scripting to connect Amazon SQS.

 

To connect the SQS, you need to use Amazon AWS java libraryand it will be available from amazon's doc page,
Below are some help links,
https://aws.amazon.com/code/Java/1173
http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/Query_QueryAuth.html
http://docs.aws.amazon.com/AWSSdkDocsJava/latest//DeveloperGuide/java-dg-access-control.html

 

Here is the  Boomi answers forum link to get more details about connecting SQS with scripting,
https://na2.salesforce.com/chatteranswers/ChatterAnswersQuestionSingleItem.apexp?id=90640000000L7uT

 

Jar file for class not found exception,
http://stackoverflow.com/questions/27358028/caused-by-java-lang-noclassdeffounderror-com-fasterxml-jackson-databind-jsonma

 

Refer attached sample scripting to do SQS operation(Create, Send Messages, Receive Messages, Delete Message & Queue).

 

Here is the name of the jar files to connect the Amazon SQS. You can get all there libraries from online.
aws-java-sdk-1.9.23.jar
aws-java-sdk-1.9.23-javadoc.jar
aws-java-sdk-1.9.23-sources.jar
aws-java-sdk-flow-build-tools-1.9.23.jar
com.fasterxml.jackson.annotations.jar
com.fasterxml.jackson.core.jar
com.fasterxml.jackson.databind.jar
com.fasterxml.jackson.xml.jar
commons-codec-1.3.jar
commons-httpclient-3.1.jar
commons-logging-1.1.1.jar
httpclient-4.4.jar
httpclient-cache-4.4.jar
httpclient-win-4.4.jar
httpcore-4.4.jar
joda-time-2.4.jar
joda-time-2.4-javadoc.jar
joda-time-2.4-sources.jar

 

Please make sure to place all the required jar file in the atom-install-directory/userlib/  or  atom-install-directory/userlib/script.
2 people found this helpful

Attachments

Outcomes