我可以阻止使用 Grails RabbitMQ 插件发送 Ack 吗?
Grails RabbitMQ 插件很棒,但我似乎找不到任何有关处理消息失败时该怎么做的信息。我希望不将Ack发送回RabbitMQ,但我似乎找不到任何有关如何使用该插件执行此操作的信息。
是否可以使用 grails 的 RabbitMQ 插件来控制它,或者我是否陷入不使用该插件的困境?
The Grails RabbitMQ plugin is great, but I can't seem to find any information about what to do when processing a message fails. I would prefer not to send an Ack back to RabbitMQ, but I can't seem to find any information on how to do this using the plugin.
Is it possible to control this with the RabbitMQ plugin for grails, or am I stuck not using the plugin?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当前版本的 Grails RabbitMQ 插件 (0.3.3) 不支持手动确认模式。
Grails RabbitMQ 插件在底层使用 Spring AMQP 库,因此您始终可以在
resources.groovy
中声明自定义SimpleMessageListenerContainer
并通过手动确认实现侦听器。查看 http://static.springsource.org/spring-amqp/reference/ html/#d0e377The current version of Grails RabbitMQ plugin (0.3.3) do not support manual acknowledge mode.
Under the hood Grails RabbitMQ plugin use Spring AMQP libraries, so you can always declare your custom
SimpleMessageListenerContainer
inresources.groovy
and implement a listener with manual acks. Check out http://static.springsource.org/spring-amqp/reference/html/#d0e377