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?

질문됨 일 년 전824회 조회
1개 답변
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
지원 엔지니어
Tom_T
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠