Consuming from multiple queues using different listeners #953
Replies: 3 comments 2 replies
-
It does look strange indeed. Are you able to prepare sample repository that reproduces this issue? |
Beta Was this translation helpful? Give feedback.
-
From this part of the stack trace it seems the Spring Cloud AWS does not interfere with the client lifecycle other than declaring it as a Spring Bean, which ties it to the Spring Context lifecycle. Here are some questions to help your troubleshooting:
Let me know if that makes sense to you. |
Beta Was this translation helpful? Give feedback.
-
I've tested this setup locally and wasn't able to reproduce the issue - messages were consumed from both queues, as expected. After deploying the change one more time, I figured out the problem was that the service was lacking AWS permissions for one of the queues. |
Beta Was this translation helpful? Give feedback.
-
Hi folks,
Our Spring Boot application needs to consume from two different queues, and the messages are different. It was working fine with one method, but when I added the second one, I got a weird error:
Unfortunately, I can't easily track it to the root cause as part of the exception was cut off by filebeat.
Both listeners are in the same class, separate methods annotated with
@SqsListener
. Is there any configuration I need to supply to make it work?Thanks in advance 🙏
Beta Was this translation helpful? Give feedback.
All reactions