Failure of DB TraceListener For Distributor Service

Topics: Logging Application Block
Jan 7, 2011 at 12:18 AM

I currently have a scenario where we are using the MSMQ Distributor Service with a custom DB TraceListener to write to the database.  I have discovered that if we pull a message off the queue and then have some error in the DB TraceListener that prevents it from writing the log to the DB, the message is lost.  Any suggestions on an approach to preserve these messages?  I have read of people catching the error in the DB TraceListener and logging the message back to the queue, but I was wondering if anyone had any better suggestions?



Jan 7, 2011 at 12:45 AM

I'm afraid that's the easiest solution for now as the other solution I know of is to modify the source code itself.


Sarah Urmeneta
Global Technologies & Solutions
Avanade, Inc.