Hi, The maximum prefetch value is set to 500 by default in Qpid JMS client for AMQP 0.10 and 0.8/0.9.x protocols.
You cannot turn it off by you can set it to 1 or any other value. The max prefetch value can be set either as a connection URL option or as JVM setting. Please, read [1] or [2] for details how to set it up. Kind Regards, Alex [1] http://qpid.apache.org/releases/qpid-0.28/programming/book/QpidJNDI.html#section-jms-connection-url [2] http://qpid.apache.org/releases/qpid-0.28/jms-client-0-8/book/JMS-Client-0-8-Client-Understanding-Session.html On 23 June 2014 12:31, lixucheng <[email protected]> wrote: > When I use JMS to browse my LVQ, why the queue attribute "Pre-fetched:" is > always increase, for example: when I browse 5 messages, the pre-fetched > will > be 5 msgs, when I browse the 5 messages again, the pre-fetched will > increase > to 10 msgs. Dose anyone know how to turn off the pre-fetched, or set to a > fix value, do not increase always? Thanks. > > > > -- > View this message in context: > http://qpid.2158936.n2.nabble.com/How-to-turn-off-pre-fetched-when-browse-LVQ-tp7609553.html > Sent from the Apache Qpid users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
