Uploaded image for project: 'ActiveMQ .Net'
  1. ActiveMQ .Net
  2. AMQNET-57

Selector string is not passed through when creating a consumer on a session.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • None
    • None
    • ActiveMQ, MSMQ
    • None
    • Windows XP SP2, .NET 2.0

    • Patch Available

    Description

      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:

      Session.cs snippet [BROKEN CODE]
      public IMessageConsumer CreateConsumer(IDestination destination, string selector)
      {
      	return CreateConsumer(destination, null, false);
      }
      

      The fix is simple:

      Session.cs snippet [FIXED]
      public IMessageConsumer CreateConsumer(IDestination destination, string selector)
      {
      	return CreateConsumer(destination, selector, false);
      }
      

      Attachments

        Issue Links

          Activity

            People

              jstrachan James Strachan
              jgomes Jim Gomes
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 5m
                  5m
                  Remaining:
                  Remaining Estimate - 5m
                  5m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified