Hi I'm using exec to call a BASH script to do some stuff. The output of exec is returned as the body of my processed message, so I'm able, with <simple>, to pick out whether the script succeeded:
... <recipientList> <simple>exec:PDFInvoicesCurl.sh?args=${file:name} {{InputFolder}} {{SendURL}}</simple> </recipientList> <convertBodyTo type="String"/> <choice> <when> <simple>${body} not contains 'HTTP/1.1 200 OK'</simple> <log message="Problem with PDF Invoice send" loggingLevel="WARN"/> </when> </choice> ... This is great, but I'd like to try the BASH script again a couple of times if the exec fails. The way to do this seems to use onException: http://camel.apache.org/how-do-i-retry-processing-a-message-from-a-certain-point-back-or-an-entire-route.html <http://camel.apache.org/how-do-i-retry-processing-a-message-from-a-certain-point-back-or-an-entire-route.html> Is there a way to get the output of the exec (body) into the exception so I can do a redelivery. Or can I setup a redelivery attempt based on my <choice><when> above? Using Camel 2.13.2 Thanks James -- View this message in context: http://camel.465427.n5.nabble.com/Output-of-exec-used-for-exception-handling-to-enable-message-redelivery-tp5772641.html Sent from the Camel - Users mailing list archive at Nabble.com.