监听器在 spring jms 中监听消息后无法从 Topic 中取出消息

发布于 2024-08-21 05:58:51 字数 154 浏览 2 评论 0原文

我使用 oracle.jms.AQjmsFactory 将消息发送到主题。消息存储在数据库主题中。使用 DefaultMessageListenerContainer ,消息正在被监听。但问题是消息没有从主题中出列或删除,即消息被卡在主题中。

I am sending the messages to Topic using oracle.jms.AQjmsFactory. The messages are stored in DB topic . Using DefaultMessageListenerContainer , the messages are being listen .But the problem is the messages are not dequeueing or deleting from the topic i.e., the messages are stucked in topic.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

っ〆星空下的拥抱 2024-08-28 05:58:51

你怎么知道他们陷入了主题?您是否多次收到相同的消息传递给您的侦听器,或者您的意思是它仍然在数据库中?

请记住,一个主题上的消息应该传递给多个消费者,因此如果该消息在传递给您的侦听器后仍然悬而未决,那应该不会太令人惊讶 - 它可能认为还有其他客户端需要处理交付至.

How do you know they're stuck in the topic? Do you get the same message delivered to your listener multiple times, or do you mean it's still in the database?

Remember, messages on a Topic are supposed to be delivered to multiple consumers, so it shouldn't be too much of a surprise if the message is still hanging around after being delivered to your listener - it might think there are other clients still to be delivered to.

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