【问题标题】:Not able to retrieve properties values from a activeMq message无法从 activeMq 消息中检索属性值
【发布时间】: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 中有一些用于检索属性值的方法。

标签: c# activemq


【解决方案1】:
猜你喜欢
  • 2018-03-06
  • 1970-01-01
  • 2018-08-29
  • 2014-01-27
  • 2013-08-10
  • 2019-10-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多