2

我正在使用 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

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

谢谢!

4

1 回答 1

0

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

SQL Server Service Broker 外部激活疑难解答

于 2012-07-13T18:52:01.000 回答