activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Gomes (JIRA)" <j...@apache.org>
Subject [jira] Created: (AMQNET-57) Selector string is not passed through when creating a consumer on a session.
Date Fri, 07 Sep 2007 20:56:22 GMT
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


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.


Mime
View raw message