awslabs / amazon-sqs-java-messaging-lib

This Amazon SQS Java Messaging Library holds the Java Message Service compatible classes, that are used for communicating with Amazon Simple Queue Service.
http://aws.amazon.com/sqs
Apache License 2.0
167 stars 146 forks source link

Implement createTemporaryQueue() using the SQS Temporary Queue Client #91

Open robin-aws opened 4 years ago

robin-aws commented 4 years ago

SQS now provides a client that implement temporary queues much more efficiently than naively creating a new SQS queue for each call. It should be easy to use that client to implement the SQSSession.createTemporaryQueue() method. This would help folks that want to use higher-level libraries like Spring or Camel to implement request/response patterns on top of JMS, and therefore not be locked into the SQS API.

The only wrinkle is how to take an optional dependency on https://github.com/awslabs/amazon-sqs-java-temporary-queues-client, since we can't break clients by adding it as a direct dependency.

sg202111 commented 2 years ago

@robin-aws We are having trouble using spring JMS library with Amazon temporary queues. Currently our application using session.createTemporaryqueue(). Can you please suggest, how we can get this method work in our application?

I don't see any support in https://github.com/awslabs/amazon-sqs-java-temporary-queues-client, to create consumer & producer using the JMS.