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?
Yes, you can install multiple instances of a service. See
Understanding the serviceName Attribute
Using the Distributor Service
The relevant information is:
To install multiple instances of the distributor service
- Copy the Msmqdistributor.exe file and the MsmqDistributor.exe.config file to multiple directories.
- Update the MsmqDistributor.exe.config file in each directory to have a unique service name.
- 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.
Enterprise Library support engineer