2016-09-15 31 views
0

我已经创建了一个Windows控制台应用程序来测试NServiceBus v5.2.16。我正在使用MsmqPersistence。当接收器上的消息无法处理时,FLR起作用。但是,一旦尝试过FLR,SLR就不会启动。如何获得使用MsmqPersistence的NServiceBus SLR

的FLR和单反是根据指引规定和如下:

<TransportConfig MaxRetries="5" /> 
<SecondLevelRetriesConfig Enabled="true" TimeIncrease="00:00:10" NumberOfRetries="3" /> 

这就是我如何启动服务总线:

static void Main(string[] args) 
    { 
     Console.Title = "CRM Sub Test"; 

     var busConfiguration = new BusConfiguration(); 
     busConfiguration.EndpointName("TestQueue"); 
     busConfiguration.UsePersistence<MsmqPersistence>(); 
     busConfiguration.EnableInstallers(); 

     using (var bus = Bus.Create(busConfiguration).Start()) 
     { 
      Console.WriteLine("Press any key to exit"); 
      Console.ReadKey(); 
     } 
    } 

任何帮助是极大的赞赏

Regards

回答

2

这回复于Google Groups here。 TLDR版本:MSMQ持久性仅适用于订阅它不可扩展。 MSMQ持久性不支持第二级重试所需的超时存储。 NHibernateRavenDB持久性更适合于此。

0

大卫和肖恩

感谢您的意见。我也在Google网上论坛发布了这个问题,您在评论中添加的link是我的问题的答案。

Regards