Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xquery on JMS message body string

I'm working on building a few JMS triggers in webMethods.

I would like to filter my messages based on certain conditions in the payload of the message which is part of JMS Message body string. As I understand JMS message selector will not do this filtering. I'm trying to see if Xquery is able to do this for me.

Any idea if Xquery can extract the value of a field hidden inside an XML (which is present inside the JMS Message body string)?

like image 536
Nanda Kishore Reddy Avatar asked Jul 04 '26 08:07

Nanda Kishore Reddy


1 Answers

JMS triggers cannot filter on values other than those in the JMS message header.

To achieve what you want you can either:

  1. Extract the value you want to filter on and add it to the JMS message header prior to enqueuing the message, or
  2. Check the JMS message body yourself in your trigger service, and decide whether to process the message or ignore it depending on the result of your check.
like image 109
Lachlan Dowding Avatar answered Jul 08 '26 12:07

Lachlan Dowding



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!