I create my consumer (in C# using the NMS library) as so:
ConnectionFactory factory = new ConnectionFactory(_mqServer);
_con = factory.CreateConnection();
_con.Start();
_session = _con.CreateSession(AcknowledgementMode.Transactional);
_queue = _session.GetQueue(_mqQueue);
_consumer = _session.CreateConsumer(_queue, "someproperty = 'someValue'");
When I receive a message and don't call Commit on the session, it goes back into the original queue. It then attempts redelivery 5 more times before being discarded. Why is the message being discarded instead of being sent to a DLQ?!