Hi i have some question abt how to re send the message to endpoint.

i received request from jms and to convert to JSON and then i have to send
it to the Rest endpoint to check
if the thing i looking for in the endpoint is not exist i have to throws
exception and re check it again How can i do that.

    public void configure() throws Exception {
        onException(Exception.class)
        .maximumRedeliveries(1)
        .maximumRedeliveryDelay(5000)
        .to(requestEndpoint);
        
        from(fromEndpoint)
        .setExchangePattern(ExchangePattern.InOnly)
        .setProperty(ORIGINAL_REQUEST_PROPERTY, body())
        .bean(requestMapping)
        .recipientList(simple(requestEndpoint))
        .bean(responseMapping)
        .to(responseEndpoint);
    }



--
View this message in context: 
http://camel.465427.n5.nabble.com/How-can-i-re-send-the-msg-when-i-got-the-exception-tp5734187.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to