我在 Websphere Liberty Profile 8.5 next beta 上安装了 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
});