5 Replies Latest reply on Jan 20, 2011 8:59 AM by Clebert Suconic

    Core API: queue with filter - bug or misunderstanding

    Yuri Zaitsev Newbie



      I use embedded HornetQ  (2.1.2 Final).


      If I have a single queue (created with a filter expression) bound to an address, the messages not matching the filter DO get routed to that queue BUT cannot be consumed. In my understanding such messages should be discarded.


      See attached example.


      Could some one clarify?


      ps: After some exploration I found that manual committing the session after each action (producer.send() or message.acknowledge()) leads to expected behaviour. But why? The session was created as non-transacted with autoCommitSends and autoCommitAcks - shouldn`t it commit() automatically?