Skip to content

Commit

Permalink
(fix) Fixed bug with new SNS Binding
Browse files Browse the repository at this point in the history
The new SNS Binding Beans were wrongly named as `sqsMessageBindingProcessor` and `sqsOperationBindingProcessor`

This was causing a "A bean with that name has already been defined in class path resource" when using together the  `springwolf-sns-binding` and the `springwolf-sqs-binding` libraries
  • Loading branch information
ctasada committed Mar 25, 2024
1 parent c019373 commit b8f2ad9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ public class SpringwolfSnsBindingAutoConfiguration {
@Bean
@Order(value = BindingProcessorPriority.PROTOCOL_BINDING)
@ConditionalOnMissingBean
public SnsMessageBindingProcessor sqsMessageBindingProcessor() {
public SnsMessageBindingProcessor snsMessageBindingProcessor() {
return new SnsMessageBindingProcessor();
}

@Bean
@Order(value = BindingProcessorPriority.PROTOCOL_BINDING)
@ConditionalOnMissingBean
public SnsOperationBindingProcessor sqsOperationBindingProcessor() {
public SnsOperationBindingProcessor snsOperationBindingProcessor() {
return new SnsOperationBindingProcessor();
}
}

0 comments on commit b8f2ad9

Please sign in to comment.