如何在JAX-WS处理程序中设置JMS消息属性?

时间:2023-01-31 20:14:37

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.

有没有办法在JAX-WS处理程序中设置JMS消息属性?我试图在消息上设置一个自定义属性,供MDB消息选择器使用。

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.

我已经尝试在SOAPHandler中设置SOAPMessage上的属性,但这不起作用,所以我认为这些属性可能处于不适用于消息选择器的不同级别。如果我将属性放在BindingProvider的requestContext中,它也不起作用。

1 个解决方案

#1


0  

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.

对于将来阅读本文的人:我能够找到一种在处理程序中设置JMS属性的方法,但似乎IBM生成的MDB代码实际上正在删除这些属性。您可能不得不抛弃JMSListenerMDB以解决此问题。

#1


0  

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.

对于将来阅读本文的人:我能够找到一种在处理程序中设置JMS属性的方法,但似乎IBM生成的MDB代码实际上正在删除这些属性。您可能不得不抛弃JMSListenerMDB以解决此问题。