Camel - split and aggregate exceptions -
I want to send separation message, separately to process the webservice endpoint, each CSV line as a CSV file I am examining exceptions, and send a response with the exception summary:
My route is:
& Lt; Split Strategy = "MyAgregrate Stracia" & gt; & Lt; Tokenize token = "\ n" /> & Lt; Unmarshal & gt; & Lt; CSV Seamankita = ";" / & Gt; & Lt; / Unmarshal & gt; & Lt; Process ref = "miprocessor" /> & Lt; From Yuri = "Bean: Mywbysis? Method = Process" / & gt; & Lt; / Split & gt; & Lt; / Route & gt; How can I do this? Feedback
& lt; DoTry & gt; More about using and & lt; DoCatch & gt; within your logic? You can have whatever logic you want in the catch, eg Something like this:
& lt; a bean to consolidate / Route & gt; & Lt; Uri = "cxf to: bean: my endpoint" /> & Lt; Split Strategy = "MyAgregrate Stracia" & gt; & Lt; doTry & gt; & Lt; tokenize token = "\ n" /> & Lt; unmarshal & gt; & Lt; CSV Seismicity = ";" / & Gt; & Lt; / Unmarshal & gt; & Lt; Process ref = "mieprocessor" /> & Lt; From Yuri = "Bean: Mywbysis? Method = Process" / & gt; & Lt; DoCatch & gt; & Lt; Exceptions & gt; Java.lang.Exception & lt; / Exceptions & gt; & Lt; Handled & gt; & Lt; Continuous & gt; True & lt; / Continuous & gt; & Lt; / Handled & gt; & Lt; Bean ref = "yourExceptionHandlingBean" method = "holistic exception" /> & Lt; / DoCatch & gt; & Lt; / DoTry & gt; & Lt; / Split & gt; & Lt; / Route & gt;
Comments
Post a Comment