简体   繁体   English

Jboss AMQ:从hawtio发送持久消息

[英]Jboss AMQ: Send persistent message from hawtio

We are developing an application that uses redhat jboss AMQ. 我们正在开发一个使用redhat jboss AMQ的应用程序。 We are migrating from version 6.0 to 6.1 where we have the new webconsole hawtio . 我们正在从6.0版迁移到6.1版,其中有了新的webconsole hawtio In order to test feature of our app I need to send PERSISTENT message to queue. 为了测试我们应用的功能,我需要发送PERSISTENT消息到队列。 In version 6.0 if I wanted to send persistent message I just needed to check checkbox, but in hawtio I see no such option. 在6.0版中,如果我想发送持久消息,我只需要选中复选框,但是在hawtio中,我看不到任何此类选项。 I believe I need to add additional header, but I don't know exactly which one, or is there another option to achieve what I want ? 我相信我需要添加其他标头,但我不知道确切是哪个标头,或者是否有另一种选择可以实现我想要的?

you need to add the JMS header "JMSDeliveryMode" as 2. As per the jms-1.1.jar 您需要将JMS标头“ JMSDeliveryMode”添加为2。按照jm​​s-1.1.jar

package javax.jms;
public interface DeliveryMode {
    int NON_PERSISTENT = 1;
    int PERSISTENT = 2;
}

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

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