Amazon SQS Java Messaging Library

0

We are migrating project from Springboot 2.7.3 to 3.0.0. We have used 'amazon-sqs-java-messaging-lib' dependency. We are creating bean by using

    @Bean
    public ConnectionFactory sqsConnectionFactory() {
        return new SQSConnectionFactory(
                new ProviderConfiguration(),
                new AmazonSQSBufferedAsyncClient(amazonSQSAsync, queueBufferConfig));
    }

which returns "javax.jms.ConnectionFactory" but springboot 3.0 doesn't support javax.jms.ConnectionFactory. So we are using "jakarta.jms.ConnectionFactory;" which is from Jakarta EE 9 API. It looks like 'amazon-sqs-java-messaging-lib' doesn't provide support for jakarta. Is there any other way to create connection?

gefragt vor einem Jahr824 Aufrufe
1 Antwort
0

Hello,

This is Tom from AWS Premium Support. I see that the current issue is regarding 'amazon-sqs-java-messaging-lib' incompatibility with Jakarta.

Looking through GitHub Repository, I found out two related links mentioning the same compatibility issue with 'amazon-sqs-java-messaging-lib', and it looks like the change is still pending review [1] [2].

Currently, to create SQS connections, two other alternative solutions would be to either use Java SDK without JMS implementation [3], or roll back to previous version of Springboot (such as Springboot 2.7.3).

You may continue checking on the aforementioned GitHub Issue page [1] and Pull request page [2] to see if "amazon-sqs-java-messaging-lib" has been updated with Springboot 3 compatibility later.

Thanks and have a nice day!

Links and References

[1] https://github.com/awslabs/amazon-sqs-java-messaging-lib/issues/155

[2] https://github.com/awslabs/amazon-sqs-java-messaging-lib/pull/177

[3] https://stackoverflow.com/questions/52096153/is-it-mandatory-to-implement-aws-sqs-with-jms-in-java

AWS
SUPPORT-TECHNIKER
Tom_T
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen