Gary, Mark,
Right, I thought you meant an SI MessageSelector at first, since it is not immediately obvious where a "selector" attribute of "jms:message-driven-channel-adapter" points to. I did a quick "Command + F" on docs, and this particular "selector" is not (yet) discussed there.
Now as I looked at it a bit closer I can see it takes a selector, passes it to JmsTemplate and:
Code:
protected Message doReceive(Session session, Destination destination, String messageSelector) throws JMSException {
return doReceive(session, createConsumer(session, destination, messageSelector));
}
which goes directly to the broker.
Just to confirm:
Code:
<jms:message-driven-channel-adapter destination="xyzQueue"
channel="xyzPipe"
selector="someId = '75D938E89AF18C30'"/>
Will only receive messages that have "someId" set to "75D938E89AF18C30" in JMS header?
Thank you.