Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use a JMS adapter to listen Amazon SQS

Is there any way to setup an Amazon SQS Queue or Amazon SNS Topic in order to work as a native XA JMS Resource Adapter?

The idea is to replace the use of activemq in a large application with SQS, but avoid unnecessary code rewriting overhead.

Aborting automatically the currrent XA transaction, when the message visibility times out, would be great.

like image 280
Alessandro Oliveira Avatar asked Aug 31 '12 19:08

Alessandro Oliveira


People also ask

Should I use JMS with SQS?

Absolutely not - JMS is not at all required. Indeed, I would recommend against it as it is JMS 1.0 and doesn't take advantage of any of the JMS 2 code.

How do I view AWS SQS messages?

From the left navigation pane, choose Queues. From the queue list, select the queue that you created. From Actions, choose Send and receive messages. The console displays the Send and receive messages page.

How do I consume a SQS queue?

If you want to consume from SQS you have the following methods: Polling using the SDK to consume messages. Using the Amazon SQS Java Messaging Library. Subscribing to an SNS Topic.

How do I access SQS in AWS?

Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/ . In the navigation pane, choose Users. Choose the name of the user whose access keys you want to create, and then choose the Security credentials tab. In the Access keys section, choose Create access key.


1 Answers

Nevado is a JMS driver that supports SQS and SNS. It's very focused on JMS spec compliance, so it should be a good tool for porting off of ActiveMQ.

like image 144
Corby Page Avatar answered Sep 19 '22 06:09

Corby Page