如何在 JAX-WS 处理程序中设置 JMS 消息属性?
有没有办法在 JAX-WS 处理程序中设置 JMS 消息属性?我正在尝试在消息上设置一个自定义属性,以供 MDB 消息选择器使用。
我尝试在 SOAPHandler 内的 SOAPMessage 上设置属性,但这不起作用,因此我认为这些属性可能处于不同的级别,不适用于消息选择器。如果我将该属性放入 BindingProvider 的 requestContext 中,它也不起作用。
Is there any way to set a JMS message property within a JAX-WS handler? I am trying to set a custom property on the message, to be used by a MDB message selector.
I've tried setting the properties on the SOAPMessage within a SOAPHandler, but that doesn't work so I think those properties may be at a different level that does not apply to the message selector. And it doesn't work if I put the property in the BindingProvider's requestContext either.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于将来阅读本文的任何人:我能够找到一种在处理程序中设置 JMS 属性的方法,但 IBM 生成的 MDB 代码似乎实际上删除了这些属性。您可能必须放弃 JMSListenerMDB 才能解决此问题。
For anyone reading this in the future: I was able to find a way to set JMS properties within a handler, but it appeared that the IBM generated MDB code was actually removing those properties. You may have to ditch the JMSListenerMDB in order to solve this issue.