【发布时间】:2015-03-14 08:29:16
【问题描述】:
是否可以在 HornetQ 中更改 _HQ_GROUP_ID 名称值?我正在使用 Wildfly 8 和默认的 HornetQ JMS 系统。我已经配置了一个网桥来将本地大黄蜂队列连接到远程 ActiceMQ 队列。当发送带有 JMSXGroupID 属性集的消息时,HornetQ 似乎将名称更改为 _HQ_GROUP_ID。为什么会这样,有什么办法可以改变吗?
相关代码,
try {
message.clearProperties();
MapMessage map = (MapMessage) message;
String customer = map.getString("customer");
String location = map.getString("location");
// setting the property here
message.setStringProperty("JMSXGroupID", customer + "@" + location);
message.setJMSTimestamp(System.currentTimeMillis());
context.createProducer().send(msmt, message); // relay message to apacheMQ in chaos
} catch (JMSException jmse) {
log.severe(jmse.getMessage());
}
【问题讨论】:
标签: jboss jms activemq hornetq wildfly-8