Is is possible to change the _HQ_GROUP_ID name value in HornetQ? I am using Wildfly 8 and the default HornetQ JMS system. I have configured a bridge to interface a local hornet queue to a remote ActiceMQ queue. When sending a message with JMSXGroupID property set HornetQ seems to clober the name to _HQ_GROUP_ID. Why does it do this and is there any way to change it?
Relevant code,
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());
}