Details
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
- duplicates
-
AMQNET-44 Selector not being set in NMS when calling Session.CreateConsumer(destination,selector)
- Closed