I was just searching for a way to integrate Amazons SQS in Spring and I found this project:
http://nevado.skyscreamer.org/
Nevado JMS is a JMS driver for Amazon SQS.
- Leverage cloud services in Amazon using standard Spring/J2EE metaphors
- Avoid tight coupling to cloud-specific API's inside your code
- Rapidly prototype enterprise clients in the cloud. Then deploy them anywhere.
How you get started:
Code:
<dependency>
<groupId>org.skyscreamer</groupId>
<artifactId>nevado-jms</artifactId>
<version>1.0.0</version>
</dependency>
Code:
<!-- Pick your AWS SDK. Typica is pretty fast. -->
<bean id="sqsConnectorFactory" class="org.skyscreamer.nevado.jms.connector.typica.TypicaSQSConnectorFactory" />
<!-- And this is an implementation of javax.jms.ConnectionFactory -->
<bean id="connectionFactory" class="org.skyscreamer.nevado.jms.NevadoConnectionFactory">
<property name="sqsConnectorFactory" ref="sqsConnectorFactory" />
<property name="awsAccessKey" value="${aws.accessKey}" /> <!-- Set this -->
<property name="awsSecretKey" value="${aws.secretKey}" /> <!-- And this -->
</bean>
And that's it ... maybe you should give it a try.