[
https://issues.apache.org/activemq/browse/AMQNET-57?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jim Gomes closed AMQNET-57.
---------------------------
Resolution: Duplicate
> Selector string is not passed through when creating a consumer on a session.
> ----------------------------------------------------------------------------
>
> Key: AMQNET-57
> URL: https://issues.apache.org/activemq/browse/AMQNET-57
> Project: ActiveMQ .Net
> Issue Type: Bug
> Components: ActiveMQ Client, MSMQ, Stomp
> Environment: Windows XP SP2, .NET 2.0
> Reporter: Jim Gomes
> Assignee: James Strachan
> Priority: Critical
> Original Estimate: 5 minutes
> Remaining Estimate: 5 minutes
>
> The overloaded ISession.CreateConsumer() in ActiveMQ.Session does not pass
> through the selector string parameter. Even if the client supplies a
> selector string, a null string will be passed on to the overloaded worker
> function. Following is the erroneous code:
> {code:title=Session.cs snippet [BROKEN CODE]|borderStyle=solid}
> public IMessageConsumer CreateConsumer(IDestination destination, string
> selector)
> {
> return CreateConsumer(destination, null, false);
> }
> {code}
> The fix is simple:
> {code:title=Session.cs snippet [FIXED]|borderStyle=solid}
> public IMessageConsumer CreateConsumer(IDestination destination, string
> selector)
> {
> return CreateConsumer(destination, selector, false);
> }
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.