spring-cloud-aws icon indicating copy to clipboard operation
spring-cloud-aws copied to clipboard

aws spring cloud 3.x : what the replacement for SimpleMessageListenerContainer for Aws cloud 2.x.x | SqsMessageListenerContainer

Open VaibhavTheVicar opened this issue 1 year ago • 2 comments

Looks like in aws spring cloud 3.x SqsMessageListenerContainer is the replacement for SimpleMessageListenerContainer and similarly the factory.

I am having problems setting a setDestinationResolver. @maciejwalkowiak any clues?

VaibhavTheVicar avatar Feb 18 '24 03:02 VaibhavTheVicar

Everything found except where to set destination resolver.

VaibhavTheVicar avatar Feb 18 '24 04:02 VaibhavTheVicar

@VaibhavTheVicar destination resolver has not been ported to 3.x

maciejwalkowiak avatar Feb 19 '24 05:02 maciejwalkowiak

For anyone looking for a solution, override the SqsListenerContainerFactory the create container method, and transform the logicalEndpoints

VaibhavTheVicar avatar Mar 08 '24 11:03 VaibhavTheVicar

How do you set the following things in the SqsMessageListenerContainer setAmazonSqs(amazonSqs); factory.setAutoStartup(true); factory.setMaxNumberOfMessages(10); factory.setTaskExecutor(createDefaultTaskExecutor());

BalamuruganS46 avatar Jun 05 '24 12:06 BalamuruganS46