2012-07-18 99 views
2

我可以在毒隊列中看到消息,但在一段時間後會被清除。我不確定這是怎麼發生的。消息如何從msmq中的毒隊列中清除

如何將它們保持在毒性隊列中然後手動刪除它們?

這是我在WCF服務netMsmqBinding:

<-netMsmqBinding 
     <-binding name="MsmqBindingNonTransactionalNoSecurity" exactlyOnce="true" maxReceivedMessageSize="2147483647" 
       closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" 
       receiveRetryCount="5" 
       maxRetryCycles="1" 
       retryCycleDelay="00:00:20" 
       receiveErrorHandling="Move"> 
      <-readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" maxNameTableCharCount="2147483647" /> 
      <-security mode="None"/> 
     <-/binding> 
     <-/netMsmqBinding> 

回答

1

看傳輸TimeToLive屬性here
基本上,默認爲1天,如果它在一個隊列中的時間超過一天的消息將被丟棄。