SSB – Handling and Removing Poison Messages

本文介绍了Service Broker如何自动检测及处理毒消息,并解释了毒消息并非损坏的消息,而是应用程序无法成功处理的消息。当包含接收语句的事务回滚五次时,Service Broker会禁用所有受影响的队列。

SSB – Handling and Removing Poison Messages<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

A poison message is a message containing information that an application cannot successfully process. A poison message is not a corrupt message, and may not be an invalid request.

 

Service Broker provides automatic poison message detection. When a transaction that contains a RECEIVE statement rolls back five times, Service Broker disables all queues that the transaction received message from, by automatically setting the QUEUE STATUS to OFF. In addition, Service Broker generates an event of type Broker: Queue Disabled.

 

Excerpted from the following URLs, MSDN. Click on the links to get more detail.

 

References:

1. Removing Poison Messages, http://msdn2.microsoft.com/en-us/library/ms166137.aspx

2. Handling Poison Messages, http://msdn2.microsoft.com/en-us/library/ms171592.aspx

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值