无法从activeMq消息中检索属性值
本文关键字:检索 属性 消息 activeMq | 更新日期: 2023-09-27 18:06:03
ActiveMQTextMessage {commandId = 0, responseRequired = false,
messageId = null, originalDestination = null,
originalTransactionId = null, producerId = null,
destination = null,
transactionId = null, expiration = 0, timestamp = 0, arrival = 0,
brokerInTime = 0, brokerOutTime = 0, correlationId = whyMe,
replyTo = null, persistent = false, type = null, priority = 0,
roupID = null,
groupSequence = 0, targetConsumerId = null, compressed = false,
userID = null, content = null, marshalledProperties = null,
dataStructure = null,
redeliveryCounter = 0, size = 0, properties = {PARAM1=xsd@1234,
PARAM0=testme, TYPE=ADMIN}, readOnlyProperties = false,
readOnlyBody =
false, droppable = false, jmsXGroupFirstForConsumer = false, text =
LOGIN_REQUEST#1}
我想检索属性PARAM0和PARAM1的值我正在使用下面的代码片段,但它返回给我一个空白值。请帮助。
请注意:-消息类型为ITextMessage
您必须访问属性http://activemq.apache.org/nms/msdoc/1.6.0/vs2005/Output/html/P_Apache_NMS_IMessage_Properties.htm