Neuron ESB User Network

The Service Bus for the Connected Business

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

Tags: Failure, Retry

Views: 413

Reply to This

Replies to This Discussion

Hi Ken,

You would have to roll your own resubmit logic. You'll need to deserialize the message into an ESBMessage.
Thank you, now I can quit looking.

I do wish you would add that feature in a future version. You're most of the way there. Additionally, please add the option to delete an individual failure item. Currently we can only do a purge on all.
Yea, deserialize the byte array from the message column into an ESBMessage. Er, how? The obvious (to me) don't seem to work. XmlESBMessage.ConvertBytesToMessage seems like the appropriate routine, but it throws.
Never mind. Message needs to be deflated first. Reflector is a nice tool, never knew it could disassemble.

RSS

Neuron ESB Product Support Forums and Communities

Latest Activity

Anupama Nair posted a discussion

Marketo Adapter Invalid Token

Hi,We are using the Marketo adapter to push account updates to Marketo. It works well for some time then starts failing with Invalid Token unless restarted. Is there a configuration that can be done so it can auto refresh the token when required?Thanks!See More
Nov 6, 2023
Sayantini Basak posted a discussion

Maximum payload size(REST API) for requests interfacing to NeuronESB

I am new to Neuron ESB and in our current scenario,We need to process batch transactions comprising of ~1000 records and send them to Neuron ESB for further processing. I would like to understand what is the maximum size of payload that can be transferred using REST interface to Neuron ESB.See More
Jul 22, 2022
Profile IconRobert E Dunie and Sayantini Basak joined Neuron ESB User Network
Apr 28, 2022
Profile IconDayanand, Frederic C, Steffen Greve-Oksfeldt and 1 more joined Neuron ESB User Network
Mar 16, 2022
Profile IconCam Vong and Mitja Luznar joined Neuron ESB User Network
Jan 27, 2022
Profile IconWill Hitzges, Chad Parsons, michael larsen and 4 more joined Neuron ESB User Network
Jun 11, 2021
Anupama Nair posted a discussion

ODBC stored proc polling with temporary tables

We have set up an ODBC adapter to poll a stored proc.We found that if the stored proc has a temporary table defined the rows returned are always 0.Any idea why this would be and what we can do to get around it?See More
Dec 14, 2020
Prasanth Kharade is now a member of Neuron ESB User Network
Dec 30, 2019

Badge

Loading…

© 2024   Created by Neuron Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service