activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jar Lyons <jarlath.ly...@tideworks.com>
Subject Broker Halts Message Delivery to Selector Based Queue Consumers
Date Wed, 10 Dec 2008 17:03:57 GMT

The broker halts message delivery to selector based queue consumers when
messages outside the scope of the selector accrue.

Use Case:

A queue being consumed by two selector based consumers.  One looking for
JMSType = 'odd', and one looking for 'even'.

Drive the queue with both types of messages.

Remove the 'even' consumer.

Expected: 'odd' messages continue to be consumed, while 'even' messages
accrue in the queue

Actual: 'odd' message delivery stops once the 'even' messages queue depth
approaches 1000

Additional Observations: once the 'even' consumer re-attaches, delivery to
the 'odd' consumer restarts.

Test Environment: 5.1, 5.2.0 (Linux)

Attachment: ActiveMQ junit test case which demonstrates success with
non-selector based consumers (NonDiscriminatingConsumer), and failure with
selector based consumers (DiscriminatingConsumer).

http://www.nabble.com/file/p20939503/DiscriminatingConsumerLoadTest.java
DiscriminatingConsumerLoadTest.java 

-- 
View this message in context: http://www.nabble.com/Broker-Halts-Message-Delivery-to-Selector-Based-Queue-Consumers-tp20939503p20939503.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message