5 Replies Latest reply on Apr 5, 2011 9:52 AM by Clebert Suconic

    messagelistener and runtime exception

    wiktorowski maximilien Novice

      Hi,

       

      I'm using hornetq inside jboss and i'm creating a non transacted auto_acknowledge session then a consumer and use a jmsMessageListener.

       

      When a message can't be computed for some reasons in my application i'm throwing a runtimeexception in order it could be redelivered later.

      The message is then scheduled as i have configured a redelivery delay. The problem i have is that when this happen all messages present in the queue  are scheduled instead of just this single message.

       

      I noticed that setting windows_consumer_size to 0 resolves this "issue" but with an impact on throughtput as i can't benefit of the client size buffering.

      Is this the expected behaviour ?

       

      Best regards,

      Maximilien