【发布时间】:2016-09-13 19:27:32
【问题描述】:
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 的值 我正在使用以下 sn-p ,但它返回给我一个空白值。请帮忙。
请注意:- 消息属于 ITextMessage 类型。
【问题讨论】:
-
这是一个质量非常低的问题,请详细说明您的尝试,您想要实现的目标或您使用的语言等。
-
看起来您正在使用 NMS 库 (ITextMessage)。请参阅代码中的示例。 API 中有一些用于检索属性值的方法。