Skip to content

Rename bean producer method to a unique name in SqsManualAckSample#1384

Merged
tomazfernandes merged 1 commit into
awspring:mainfrom
joseiedo:fix-sqs-sample
May 10, 2025
Merged

Rename bean producer method to a unique name in SqsManualAckSample#1384
tomazfernandes merged 1 commit into
awspring:mainfrom
joseiedo:fix-sqs-sample

Conversation

@joseiedo
Copy link
Copy Markdown
Contributor

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Rename one of the bean producer method in the Sqs samples

💡 Motivation and Context

When running the sample, I was getting the following error

2025-05-09T23:38:50.402-03:00 ERROR 20717 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

The bean 'sendMessageToQueue', defined in io.awspring.cloud.sqs.sample.SpringSqsSample, could not be registered. A bean with that name has already been defined in class path resource [io/awspring/cloud/sqs/sample/SqsManualAckSample.class] and overriding is disabled.

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

💚 How did you test it?

Only by running the samples.

📝 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

@tomazfernandes tomazfernandes merged commit 5919cac into awspring:main May 10, 2025
5 checks passed
@tomazfernandes
Copy link
Copy Markdown
Contributor

Thanks @joseiedo!

kcsurapaneni pushed a commit to kcsurapaneni/spring-cloud-aws that referenced this pull request Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants