Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc clarification for issue 971 #979

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iparadiso
Copy link

#971

Clarify bean factory name overrides needed for a mix of @SqsListener acknowledgmentMode usages with existing custom MessageListenerContainerFactory defined in the app.

馃摙 Type of change

  • Bugfix
  • New feature
  • [X ] Enhancement
  • Refactoring

馃摐 Description

Doc clarification for issue #971

馃挕 Motivation and Context

Helps clarify the reason for the following exception found when using custom MessageListenerContainerFactory and acknowledgementMode annotation in the same app.

No MessageListenerContainerFactory bean with name defaultSqsListenerContainerFactory found for endpoint names

馃挌 How did you test it?

馃摑 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • I updated reference documentation to reflect the change
  • All tests passing
  • No breaking changes

馃敭 Next steps

awspring#971

Clarify bean factory name overrides needed for a mix of @SqsListener acknowldgementMode usages with existing custom MessageListenerContainerFactory defined in the app.
Copy link
Contributor

@tomazfernandes tomazfernandes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @iparadiso, sorry for the long delay.

Left a comment here, please let me know if it makes sense to you.

Thanks.

@@ -640,6 +640,8 @@ See <<FIFO Support>> for more information.
If any value is set, it will take precedence over the acknowledgement mode defined for the container factory options.
See <<Acknowledgement Mode>> for more information.

NOTE: When using `acknowledgementMode`, if you are also defining any custom `SqsMessageListenerContainerFactory` bean, it is necessary to update the default bean name for `SqsMessageListenerContainerFactory` to the bean name of your custom factory. This will allow this annotation to override the acknowledgement mode in your factory. This can be achieved by creating and configuring a `SqsListenerConfigurer` bean. Refer to section <<Global Configuration for @SqsListeners>> for more information, and see <<Specifying a MessageListenerContainerFactory>> for more details about this bean naming caveat.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We prefer a more formal language than referring to the user as you.

Can you please rewrite it considering this? Feel free to take a look at the docs to get a feel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: sqs SQS integration related issue type: documentation Documentation or Samples related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants