开发者

NServiceBus subscribe to error queue

Is it possible to write an NServiceBus message handler that subscribes to error queue to allow us to perform decision making logic when an erroring message is moved开发者_如何学Go there?

Preferably, I would like to keep my regular message subscribers and error queue subscribers under the same NServiceBus.host.exe process/instance if possible

Thanks

Ben


You can have an endpoint look at the error queue. The issue will be is that you won't know why it's there. You many want to consider looking at 3.0 if you can handle that it is very early in the dev cycle. 3.0 introduces the FaultManager which includes the exception that caused the message to hit the error queue.

You won't be able to have an endpoint wired to 2 queues, you'll have to have 2 endpoints. It is best practice to have your error queue on another machine, so it would be best to have a separate endpoint on that machine.

Updated links per comment: Fault Management in 3.0 and Custom Fault Handling in 15 Minutes

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜