4 Replies Latest reply on Jun 8, 2008 4:05 AM by Tim Fox

    Does SlowConsumers flag work correctly?

    Sergey Zhigunov Newbie

      Hi,

      I want to turn off message buffering, so I set SlowConsumers=true on my connection factory.
      But it looks like one message gets prefetched anyway.

      Here is my test:
      1) There are 10 messages on the queue.
      2) Session is opened.
      3) Queue MBean shows MessageCount=10, DeliveringCount=0.
      3) Consumer created.
      4) Queue MBean shows MessageCount=10, DeliveringCount=1.
      5) Receive executed.
      4) Queue MBean shows MessageCount=10, DeliveringCount=2.
      5) Session closed.
      4) Queue MBean shows MessageCount=9, DeliveringCount=0.

      Is that the expected behavior?
      Is there any way to turn prefetch completely, so all messages which are not received would be visible to all consumers?

      I am running JBoss 4.2.2 + JBM 1.4.0.SP3