I have been testing the NetMsmqBinding of WCF with a non-transactional queue. I have found that the service, the part that reads from the queue, will occasionally lose a message when it is closed.
For example, if I have a queue with messages of the numbers 1 - 10, and allow it to read the first five messages (1, 2, 3, 4, 5) before restarting, then the rest of the messages I might get are (7, 8, 9, 10). '6', the message it was going to receive before the service has closed is lost.
Is this because I'm using a non-transactional queue? Is there any way to prevent these messages getting lost without going transactional?
Thanks