Re: AMQ issues with consumer.receive vs consumer.receiveNoWait

2013-01-30 Thread Christian Posta
what are you using for prefetch? if you're using receiveNoWait() there is definitely a window where the broker is still delivering to the session's prefetch. if you happen to call receiveNoWait when the session still hasn't seen the message, then the consumer will return null. this is one of those

AMQ issues with consumer.receive vs consumer.receiveNoWait

2013-01-30 Thread Oleg Dulin
Dear Distinguished Colleagues: I am having a strange problem where I know my queue has pending messages on it that should be immediatley available to a consumer.receiveNoWait call. However, more often than not those calls return null. On the other hand, calling receive with a small timeout s