我有一个现有的NServiceBus 2.6应用程序,我想开始移动到3.0。我正在寻找最初的升级换代。这很简单,只需用3.0 Nuget包替换2.6个DLL或者是否有其他注意事项?从NServiceBus 2.6迁移到NServiceBus 3.0
回答
对于大部分的应用程序迁移是相当简单的,但根据您的配置和环境,你可能需要做如下修改:
在配置端点的新公约可能意味着你将需要重新命名您的端点以匹配您的队列名称(@andreasohlund对此有一个很好的post)。
传奇,超时,订阅等的持久性现在默认为RavenDb,因此如果您使用SQL Server来保存数据,则需要确保您必须更正配置文件和端点配置。对于SQL Server存储,请确保您添加对NServiceBus.NHibernate的引用,因为它不再是核心的一部分。
错误队列现在引用不同的使用不同的配置,即。使用MessageForwardingInCaseOfFaultConfig而不是常规的MsmqTransportConfig错误属性。你仍然可以使用它,但它会首先查找MessageForwardingInCaseOfFaultConfig。
除此之外,我不认为你需要做其他任何事情来让你升级工作。我修改了一些消息定义,以便利用新的ICommand和IEvent接口作为一种更加清楚地表达intent的方式。
无论如何,我确定会有一些特定于您的环境的情况需要不同的更改,但我希望这会有所帮助。
感谢setphenl,配置超出规定的变化是一个很好的提醒。 – 2012-02-27 19:00:32
没问题,祝你好运! – stephenl 2012-02-27 22:25:10
- 1. NServiceBus 3.0 MarkAsComplete()导致NServiceBus.Unicast.Queuing.QueueNotFoundException
- 2. 发送从NServiceBus
- 3. 从Lucene 3.0迁移到4.9.0
- 4. 从ExtJS 3.0迁移到4.0
- 5. 从python 2.4迁移到python 2.6
- 6. 如何迁移从opensaml 2.6到3.1.1
- 7. 什么是NServiceBus 3.0最低要求
- 8. NServiceBus 3.0中的ConfigureProperty <MsmqTransport>
- 9. 如何将NServiceBus Sagas从一个Raven数据库迁移到另一个?
- 10. NServicebus DataBus
- 11. NServiceBus Sagas
- 12. nservicebus SetLoggingLibrary
- 13. Nservicebus Saga
- 14. 与NServiceBus
- 15. nServiceBus UnicastBusConfig.MessageEndpointMappings.Endpoint
- 16. NServicebus ISubscriptionStorage
- 17. NServiceBus System.ArgumentNullException
- 18. 是否nservicebus serviceInsight只能工作nservicebus 4?
- 19. cassandra从版本3.9迁移到3.0.X
- 20. 如何将CXF从2.7迁移到3.0?
- 21. Dynamics CRM从3.0迁移到4.0资源
- 22. 将jQuery从1.4迁移到3.0
- 23. 无法从spring 2.5迁移到spring 3.0
- 24. NServiceBus从V4更新到V5,Configure.Instance
- 25. NServiceBus:如何从下iBus
- 26. NServiceBus Studio - 从事件开始
- 27. NServiceBus将邮件从发布队列转移到子队列
- 28. Primefaces 3.0到3.1迁移
- 29. 迁移到Youtube API 3.0
- 30. 迁移Swift 2.1到Swift 3.0
更新 - 安德烈亚斯的这篇文章值得注意:http://www.nservicebus.com/MigratingToNServiceBus3.0Timeouts.aspx – 2012-08-22 07:47:05
更新 - 新链接 http://docs.particular.net/nservicebus/upgrades/migrating- to-nservicebus-3.0-timeouts – Peter 2016-01-29 05:08:37