我可以阻止使用 Grails RabbitMQ 插件发送 Ack 吗?

发布于 2024-12-29 02:19:39 字数 177 浏览 5 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦纸 2025-01-05 02:19:39

当前版本的 Grails RabbitMQ 插件 (0.3.3) 不支持手动确认模式。

Grails RabbitMQ 插件在底层使用 Spring AMQP 库,因此您始终可以在 resources.groovy 中声明自定义 SimpleMessageListenerContainer 并通过手动确认实现侦听器。查看 http://static.springsource.org/spring-amqp/reference/ html/#d0e377

The 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 in resources.groovy and implement a listener with manual acks. Check out http://static.springsource.org/spring-amqp/reference/html/#d0e377

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文