cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Experiences using the JMS Message Selector

Former Member
0 Likes
395

I am using a JMS Adapter Sender Communication Channel and try to select the messages I want to consume with the Message Selector. My first attempts all failed - I am not sure if the syntax I am using is correct or if anything else has to be set up to use the Message Selector.

My sample was to enter the following into the field for Message Selector:

JMSCorrelationID = '123456789012345678901234'

I also tried the following variations:

JMSCorrelationID = "123456789012345678901234"
JMSCorrelationID = 'ID:123456789012345678901234'
JMSCorrelationID = "ID:123456789012345678901234"

but none of them were successful.

Anybody got that feature to work yet and can help me...

regards,

peter

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Hi Peter,

As far as Java is concern a Message Selector is a String

"name = 'string to search'" to filter out messages. So I thing you can try the following in the field for Message Selector.

"(name = 'JMSCorrelationID') AND (name = '123456789012345678901234')".

regards,

Felix

Former Member
0 Likes

Thanks for the hint, but it did not help me any further. It also seems a bit unusual to me if this were the syntax (cause I actually want to match the JMSCorrelationId against a literal value - and not a field called name) ... hmmmm - maybe any other suggestions?

btw: It need not necessarily be the correlation id, I was just using this as an example

regards

Peter

Former Member
0 Likes

Now I found it out finally...

JMSCorrelationID = 'ID:41727469636c655570646174656400000000000000000000'

where ID: is obviously added by JMS? XI? don't know... and the actually id is in Hex...

can anybody enlighten me on the details?

regards

Peter