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 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With