MSMQ Transport connection strings

Component: MSMQ Transport | Nuget: NServiceBus (Version: 5.x)
    <add name="NServiceBus/Transport"
  • deadLetter: The deadLetter configuration parameter enables or disables the use of dead letter queues. The default value is true.
  • journal: MSMQ supports the concept of journaling, when the journaling is active a copy of each sent message is stored in the journal queue. The default value is false.
  • useTransactionalQueues: determines if the generated queues, or the existing ones, must be transactional queues or not. The default value is true. Setting this to false results in queues being created as non-transactional and messages being sent with MessageQueueTransactionType.None. Versions 4 and above.
  • cacheSendConnection: instructs the underlying infrastructure to cache the connection to a remote queue and re-use it as needed instead of creating each time a new connection to send messages. The default value is true. This value is passed to the enableCache parameter of the MessageQueue constructor when sending a message. Versions 4 and above.
  • timeToReachQueue: The time limit for the message to reach the destination queue, beginning from the time the message is sent. This sets the underlying Message.TimeToReachQueue. Format must be compatible with TimeSpan.Parse. Versions 5.1 and above.
The MSMQ connection string and any of its settings are optional. It is not required to set all values when specifying the connection string.

Last modified