![](/img/trans.png)
[英]Service Broker ,message arrives target server but it stays at sender queue
[英]Service broker queue message arrived but notification doesn't work
我正在使用 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
这适用于我设置的两个环境。 但是,对于我现在设置的这个新环境,消息成功到达主队列,但通知队列中没有任何显示。 因此,外部激活器永远不会收到通知。 什么可能导致这个问题?
谢谢!
我只是偶然发现了这个问题,我知道它已经过时了。 如果有人遇到同样的问题,我有一篇关于如何解决外部激活问题的博客文章。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.