How to implement msmq trace Listener in ent lib?

Topics: Logging Application Block
Jul 23, 2009 at 11:03 AM

Can any one tell me how to implement Message queues using ent lib?

Jul 23, 2009 at 11:11 AM

First, make sure that Message Queue is installed in your machine (  Create the queue where you want your messages to be logged.  Add the Logging Application Block in your configuration file using the Enterprise Library Configuration tool.  Under the Trace Listeners node, right click, select New, click on Msmq Trace Listener.  Refer to the documentation regarding the required properties you need to set.  Basically, it's the Queue Path which is what you need to configure which is just the path of the queue you've just created.


Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.