Re: JMS application's consumer(with msg selector) not getting messages

2010-12-15 Thread Gary Tully
glad to help, and thanks for replying to close the loop. On 15 December 2010 17:03, Stephen Vincent wrote: > ...snip... >> It does not poll the broker for messages unless prefetch is 0. > ...snip... > > > Gary, > >        Thank you Gary.  Not only does prefetch=0 allow me to get the > messages,

RE: JMS application's consumer(with msg selector) not getting messages

2010-12-15 Thread Stephen Vincent
...snip... > It does not poll the broker for messages unless prefetch is 0. ...snip... Gary, Thank you Gary. Not only does prefetch=0 allow me to get the messages, but it also caused me to inspect my code given that new knowledge. I now realize I told a fib when I said I was only cre

Re: JMS application's consumer(with msg selector) not getting messages

2010-12-15 Thread Gary Tully
are you using receiveNoWait() in your consumer? It does not poll the broker for messages unless prefetch is 0. So either use prefetch=0 or receive(1000), which will give some time for the consumer to register and get a dispatch. With receiveNoWait, it is possible to get a null return before any mes