监听器在 spring jms 中监听消息后无法从 Topic 中取出消息
我使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你怎么知道他们陷入了主题?您是否多次收到相同的消息传递给您的侦听器,或者您的意思是它仍然在数据库中?
请记住,一个主题上的消息应该传递给多个消费者,因此如果该消息在传递给您的侦听器后仍然悬而未决,那应该不会太令人惊讶 - 它可能认为还有其他客户端需要处理交付至.
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.