Monday, May 28, 2012 12:51 PM
I'm creating an an application using WCF\MSMQ binding with queue transactions.
After my service failes to process the message (e.g. when DB connection fails) transaction is aborted, messages are re-tried and everything is ok, but ...
there are some scenarios (like invalid parameters passed to wcf service or lack of data in the DB) that should not be retried, it would be perfect if I could force WCF to flag them automatically as poison.
Does anyone have an idea how to accomplish this ?
Thanks and Regards,
Friday, June 08, 2012 10:56 AM
From your requirement, i am not clear on one thing. If the message have invalid parameter etc, do you really need to keep that message. You should rather drop that message. if you want to drop the message, you could probably use:
Thursday, June 14, 2012 12:18 PM
Thanks for your reply,
this is exactly what I'm trying to accomplish, do you know if there is a C#/WCF way to mark message as rejected or do I have to call this native 'MQMarkMessageRejected' method ?