简体   繁体   English

Solace JMS 队列:搜索和处理消息

[英]Solace JMS queue: search and process message

Could I search any particular message in solace JMS queue and then process in prior to other messages?我可以在 solace JMS 队列中搜索任何特定消息,然后在其他消息之前处理吗? Do we have such functionality wrt to solace queue.我们是否有这样的功能来安慰队列。

There isn't such a functionality to search a solace queue for messages.没有这样的功能可以在安慰队列中搜索消息。 These are designed for messages to be processed in the order in which the are received.这些是为按接收顺序处理的消息而设计的。

You can use a QueueBrowser to get a static snapshot of the messages and process those messages you want prior to others.您可以使用 QueueBrowser 获取消息的静态快照,并在其他消息之前处理您想要的消息。 Using selectors might help too, if it is applicable for your search use-case.如果适用于您的搜索用例,使用选择器也可能有所帮助。 But only the native Java implementation of the Solace API can delete messages;但是只有 Solace API 的原生 Java 实现才能删除消息; a JMS QueueBrowser doesn't provide that. JMS QueueBrowser 不提供。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM