Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们正在开发一个使用 redhat jboss AMQ 的应用程序。我们正在从 6.0 版迁移到 6.1 版,我们拥有新的 webconsole hawtio。为了测试我们应用程序的功能,我需要将PERSISTENT消息发送到队列。在 6.0 版本中,如果我想发送持久消息,我只需要选中复选框,但在 hawtio 中我看不到这样的选项。我相信我需要添加额外的标题,但我不知道到底是哪一个,或者有另一种选择来实现我想要的吗?
hawtio
PERSISTENT
您需要将 JMS 标头“JMSDeliveryMode”添加为 2。根据 jms-1.1.jar
package javax.jms; public interface DeliveryMode { int NON_PERSISTENT = 1; int PERSISTENT = 2; }