[ 
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)

Reply via email to