Failure of DB TraceListener For Distributor Service

Topics: Logging Application Block
Jan 6, 2011 at 11:18 PM

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?

 

Thanks.

Jan 6, 2011 at 11:45 PM

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.
entlib.support@Avanade.com