On 4 September 2014 19:40, xiaodan.wang <[email protected]> wrote:
> > In your case, in the synchronous session do you just have the > one onsumer on the session? > > Yep, one consumer on the synchronous session. But I think this solution > works even if we decide to use multiple consumer per synchronous session > because each consumer is listening on a separate named queue. > > Not on 0-9-1 because if your have multiple consumers (lets say for q1, q2 and q3)... you call q3.receive()... that opens up the credit window by one for the entire session... so you may get a message for q1 or q2 rather than q3 sent to you... in which case you have prefetched a message you weren't asking for, and your receive times out because no message from q3 can arrive because your prefetch buffer is now full :-( But if you stick with one consumer per session for synchronous mode then this solution would work for you. -- Rob > > > > -- > View this message in context: > http://qpid.2158936.n2.nabble.com/Synchronous-consumer-can-only-dequeue-1-message-in-AMQP-0-91-tp7613017p7613079.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] > >
