在WL.Server.writeJMSMessage中设置JMS消息字段

时间:2013-03-09 15:38:57

标签: jms ibm-mobilefirst

我在Websphere Liberty Profile 8.5下一个测试版上安装了WL 5.0.5.1,JMS适配器正常工作。我可以发送带有自定义属性的短信。我不能改变其他属性,如优先级。文档是非常神秘的,反编译是我的最后手段。我将很感激如何更改相关ID,优先级和其他消息字段的示例。

WL.Server.writeJMSMessage({
  destination: "myQueue",
  properties: {
    MY_PROPERTY: "123",  // becomes custom property
    priority: 9,         // becomes custom property JMSPriority is unchanged
    JMSPriority: 9,      // ignored, neither changes JMSPriority nor becomes custom property
  },
  priority: 9,    // ignored as docs do not allow params here
  JMSPriority: 9, // ignored
});

1 个答案:

答案 0 :(得分:1)

查看JMS适配器的代码,看起来这是一个错误,无论您提供什么,该消息都将以默认优先级(4)发送。

目前,我没有看到设置优先级的解决方法。

我在内部打开了一个缺陷,很可能会很快修复,因为它相对容易修复,谢谢你帮我们找到这个bug。

关于相关性,设置JMSCorrelationID应该有效。