Set the Default Lifetime for Messages
Applies To: Windows Server 2008
You can use this procedure to set the default lifetime for Message Queuing messages. The lifetime of a Message Queuing message specifies the maximum time interval for a message to reach a destination queue. If this time interval is exceeded before the message reaches the destination queue then the message is placed in the deadletter queue if the PROPID_M_JOURNAL property of the message is set to MQMSG_DEADLETTER.
Membership in <Domain>\Domain Users, or equivalent, is the minimum required to complete this procedure.
To set the default lifetime for Message Queuing messages
Click Start, point to Programs, point to Administrative Tools, and then click Active Directory Sites and Services.
On the View menu, click Show Services Node.
In the console tree, right-click MsmqServices.
- Active Directory Sites and Services/Services/MsmqServices
On the General page, type a new value and select new units as needed.
Note that the default lifetime for transactional messages is 4 days.
The default lifetime of a message is also known as the time-to-reach-queue (TTRQ).
For best security practice, it is recommended that messages not be set with an infinite lifetime to ensure tighter control over messages that are traveling through the network. Also, Message Queuing can request that a negative acknowledgment message is returned if a timer expires, and Message Queuing sends the appropriate negative acknowledgment message to the administration queue specified by the message.