Hi,
We're using MSMQ and an integration mechanism which processes the messages. This mechanism analyzes and validates each message under a transactional context and if validation fails, a rollback occurs and the message is delivered back to the queue. Also, the integration mechanism waits for 20 seconds to process error messsages again.
Problem is that this approach is causing the error messages to be processed over and over, even if we clean the queue. We also tried cleaning the cache, but that showed no results either.
Does anyone have a clue?
Updated with calling code
using (TransactionScope ts = new TransactionScope(TransactionScopeOption.RequiresNew))
{
//message validation function
servicoIntegracao.Validar(identificadorMensagem, mensagem.Substring(_tamanhoCampoTipoEvento));
servicoIntegracao.ExecutarServico();
AtualizarStatusEventoNegocio(identificadorMensagem, Status.Finalizado);
retorno = 0;
ts.Complete();
}