You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "James Netherton (Jira)" <ji...@apache.org> on 2021/08/09 14:06:00 UTC
[jira] [Resolved] (CAMEL-16858) Enhance SjmsPollingConsumer to take
messageSelector option into consideration
[ https://issues.apache.org/jira/browse/CAMEL-16858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Netherton resolved CAMEL-16858.
-------------------------------------
Resolution: Fixed
> Enhance SjmsPollingConsumer to take messageSelector option into consideration
> -----------------------------------------------------------------------------
>
> Key: CAMEL-16858
> URL: https://issues.apache.org/jira/browse/CAMEL-16858
> Project: Camel
> Issue Type: Improvement
> Components: camel-sjms
> Reporter: James Netherton
> Assignee: James Netherton
> Priority: Major
> Fix For: 3.12.0
>
>
> If you do something like:
> consumerTemplate.receiveBody("sjms:foo.queue?messageSelector=foo='bar'", 5000L, String.class)
> The selector is never used because the logic in SjmsTemplate.receive uses the single argument Session.createConsumer(destination) implementation.
> It should be possible to pass along the selector, and if not empty, do Session.createConsumer(destination, selector).
> The existing unit test for this is flawed, so I guess this has gone unnoticed for some time.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)