Can I have multiple instances of MSMQDistributor with different configurations?

Topics: Logging Application Block
Jan 31, 2013 at 10:57 AM
I would like to be able to use the MSMQDistributor service to effectively run in parallel with different configurations, reading from different queues and writing to different logging stores.

The problem comes because I can't figure out how the service management side of that would work - can I install the same service twice in different places and if so how could I tell them apart in the Windows Services menu? Is this what the "ServiceName" of the msmqDistributorSettings is for?
Feb 1, 2013 at 5:08 AM
Yes, you can install multiple instances of a service. See Understanding the serviceName Attribute in the Using the Distributor Service article.

The relevant information is:
To install multiple instances of the distributor service
  1. Copy the Msmqdistributor.exe file and the MsmqDistributor.exe.config file to multiple directories.
  2. Update the MsmqDistributor.exe.config file in each directory to have a unique service name.
  3. Run the Installutil tool for each copy. This will give each copy of the distributor service the same service name as the one in the corresponding configuration file.
--
Randy Levy
entlib.support@live.com
Enterprise Library support engineer
Support How-to