服务代理队列消息到达但通知不起作用

时间:2011-05-25 17:41:59

标签: sql notifications service-broker

我使用Microsoft提供的External Activator来监控服务代理队列消息。主队列的名称是“ReportQueueTarget”。我还设置了这样的通知队列:

CREATE QUEUE ReportExternalNotifyQueue
GO
-- create event notification service
CREATE SERVICE ReportExternalNotifyService
      ON QUEUE ReportExternalNotifyQueue
      (
            [http://schemas.microsoft.com/SQL/Notifications/PostEventNotification]
      )
GO

-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------

CREATE EVENT NOTIFICATION [ReportNotification]
ON QUEUE [ReportQueueTarget]
FOR QUEUE_ACTIVATION
TO SERVICE 'ReportExternalNotifyService','current database'
GO

这适用于我设置的两个环境。但是,对于我现在正在设置的这个新环境,消息成功到达主队列,但通知队列中没有任何内容。因此,外部激活器永远不会收到并通知。什么可能导致这个问题?

谢谢!

1 个答案:

答案 0 :(得分:0)

我偶然发现了这个问题,我知道它已经过时了。如果有人遇到同样的问题我有一篇关于如何解决外部激活问题的博客文章。

SQL Server Service Broker troubleshooting external activation

相关问题