Adding multiple listeners which will listen to different RabbitMQ queue not working

时光毁灭记忆、已成空白 提交于 2019-12-04 13:39:54

It's a bug in the container parser, each listener gets its own container (the namespace is just a convenient way to specify common attributes). If you remove the id="myListenerContainer", it will work - because each container gets a (different) generated name. With the id specified, both beans get the same name, and the last definition replaces the first.

Alternatively, declare two separate container elements, with different IDs, and each having just one listener.

Thanks for finding this.

Please open a JIRA issue

EDIT: This issue was resolved in version 1.2.1.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!