This content has been marked as final. Show 3 replies
919856 wrote:Just to check: So if you use receive(2000) your test works every time, but if you use receiveNoWait() it sometimes fails to receive the message
Any thoughts on why this behavior would happen?
If so this is because of the way your JMS provider has implemented receiveNoWait(); This method is required to return immediately, which isn't enough time for the message to arrive from the server.