Getting Started
Architecture
NServiceBus
Transports
Persistence
ServiceInsight
ServicePulse
Monitoring
Samples

Configuring MSMQ for use with ServiceControl

Component: MSMQ Transport
NuGet Package: NServiceBus.Transport.Msmq (2.x)
Target Version: NServiceBus 8.x

ServiceControl reads messages from the input queue specified in the ServiceControl instance transport configuration. Monitored endpoints send appropriate messages, e.g. error or heartbeats, to the configured queues. ServiceControl ingests those messages in order to extract required information and saves messages in internal storage.

Depending on the selected transport and the deployment scenario, the production endpoints might require additional configuration for ServiceControl. Currently only MSMQ transport requires it.

The following transports don't need any additional configuration for remote queues:

  • SQL Server
  • RabbitMQ
  • Azure Storage Queues
  • Azure Service Bus
  • Amazon SQS

See Configure error handling for examples.

Remote MSMQ queues

If ServiceControl is installed on a different machine than endpoints using MSMQ Transport, then endpoints must be configured to send error and audit messages to a remote queue:

endpointConfiguration.SendFailedMessagesTo("targetErrorQueue@machinename");

For more information about how to configure the audit queue refer to the Configuring auditing documentation.

Related Articles


Last modified