Re: receiveNoWait() return null even if there are messages in queue

2009-03-27 Thread ManojC
Attached is the program which can be used to reproduce the issue. This uses the .binding files to interact with ActiveMQ. http://www.nabble.com/file/p22745175/TestAMQGetMsg.java TestAMQGetMsg.java ManojC wrote: > > One more thing I noticed in the stack is that there is thread in MQ which > neve

Re: receiveNoWait() return null even if there are messages in queue

2009-03-27 Thread Dejan Bosanac
Hi, can you create a reproducible test case of this issue? Cheers -- Dejan Bosanac Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Fri, Mar 27, 2009 at 12:53 AM, ManojC wrote: > > Hi > We are using JAVA P

Re: receiveNoWait() return null even if there are messages in queue

2009-03-26 Thread ManojC
One more thing I noticed in the stack is that there is thread in MQ which never finishes even though the main function is done Below is the stack. "ActiveMQ Transport: tcp:///10.10.15.156:61616" prio=6 tid=0x0b1e1000 nid=0x1078 runnable [0x0b83f000..0x0b83fb14] java.lang.Thread.State: RUNNABLE

receiveNoWait() return null even if there are messages in queue

2009-03-26 Thread ManojC
Hi We are using JAVA Program standalone to poll activeMQ queues. The way we do is following we go and try to get the message using consumer.receive(timeout) call and if the it receives the message we use while loop to get more messages if they are in the queue. The sample code of what we do is att