What I wish to do is two-fold:
1) Capture the error on processing from a subscriber. I can do this by turning on auditing (which I have tested, works fine).
2) Submit the message for re-processing after I have corrected my code/data. This I do not see a built-in way to do, but I'm hoping that I just don't understand how to properly fail.
What I have done is setup a simple test in a subscriber.OnReceive that displays the message and then uses the line below to notify the bus of a failure:
m_subscriber.FailMessage(Neuron.Esb.Internal.ESBHelper.Direction.Receive, e.Message, new Exception("Handling Failed!"));
This does cause the auditing report to pick up the entry, and I did see it in my database so I suppose I can roll my own re-sender, but if the message viewer dialog had a resend button (and perhaps a delete) I wouldn't have to do anything. Unless of course there's a better way.
Thanks
Ken
Neuron ESB Product Support Forums and Communities
© 2024 Created by Neuron Admin. Powered by