Xquery in JMS body line

I am working on creating multiple JMS triggers in webMethods.

I would like to filter my messages based on certain conditions in the message payload that is part of the JMS Message body line. As I understand it, the JMS message selector will not do this filtering. I am trying to check if Xquery can do this for me.

Any idea if Xquery can retrieve the value of a field hidden inside XML (which is present inside the JMS message body line)?

+3


source to share


2 answers


JMS triggers cannot filter for values ​​other than the values ​​in the JMS message header.

To achieve what you want, you can:



  • Extract the value you want to filter and add it to the JMS message header before firing that message, or
  • Check the JMS message body yourself in the trigger service and decide whether to process the message or ignore it based on the result of the validation.
+2


source


By specification, this is not supported. I suppose some JMS implants might have a proprietary feature like this (perhaps ActiveMQ?), But you should probably take a look at a message router implementation like Apache Camel or Spring Integration.



+1


source







All Articles