2013-02-19 54 views
1

我做了這個服務代理應用程序之間發送消息。Service Broker的應用程序將無法隊列

我做

exec [broker].dbo.spSendLogLine 
    @device_id = 'devid1', 
    @application_name = 'appname1', 
    @application_user_name = 'usrnme', 
    @log_line_dt = 1, [email protected]_line_dt = GETDATE(), fails 
    @log_line_message = 'this is the log line' 

我結束了在隊列qReceiveLogLine與狀態3和沒有在隊列qInsertLogLine或表log_line的消息。

我對Service Broker很新穎。我究竟做錯了什麼?

回答

1

spSendLogLine 變化:

BEGIN DIALOG CONVERSATION @Handle 
FROM SERVICE [sReceiveLogLine] 
TO SERVICE '[sInsertLogLine]'  
ON CONTRACT [cInsertLogLine]  
WITH ENCRYPTION = off; 

到:

BEGIN DIALOG CONVERSATION @Handle 
FROM SERVICE [sReceiveLogLine] 
TO SERVICE 'sInsertLogLine'  
ON CONTRACT [cInsertLogLine]  
WITH ENCRYPTION = off; 
相關問題