1 Reply Latest reply on Jan 21, 2009 9:40 PM by Yong Hao Gao

    Stranges with message reading from queue

    Andrew Romanenco Newbie


      I have question about receiveNoWait method. When I use it, it always returns null
      if I use this code: consumer.receive(2000) - everything is ok. I receive message.
      if I use this code: consumer.receiveNoWait() - I do not receive any messages,

      My program must check queue periodically, using quartz - so I don;t want to block process pointing any time to receive()

      How can I make receiveNoWait() to return messages?