camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul Kripalani <>
Subject Re: CFX - how to manage webservice response
Date Tue, 15 Nov 2011 01:19:45 GMT
In addition to this, you can also use Camel's error handling features
to detect this situation and raise an exception in the route, which
you can then capture in your error handler.

You can configure a redelivery policy on your error handler and
ultimately send the message to a dead letter channel to process it
later if all redelivery attempts are exhausted.

The dead letter channel can be any Camel endpoint, including a JMS destination.

Hope this helps.


On 14 Nov 2011, at 20:18, Taariq Levack <> wrote:

> I'd look at a message filter[1], or a content based router[2].
> [1]
> [2]
> Taariq
> On 14 Nov 2011, at 8:25 PM, kafe <> wrote:
>> Hi all,
>> I'm new with Camel and currently, i'm trying to call a web service through
>> CXF and, depending on the response (a simple String), put the message on a
>> queue.
>> To be clear, i have configured a simple route like that :
>> <route id="manageSoapRequest">
>>  <from uri="cxf:bean:getUserInfoEndpoint" />
>>  <to uri="cxf:bean:getDistantUserInfoEndpoint" />
>> </route>
>> That works, i manage to expose my route as a webservice and call the distant
>> web service but what i'd like to do now is getting the answer and, if the
>> answer is 'KO' (the service could not do the job), putting the message in a
>> jms queue to call again the web service later.
>> How can i do that ?
>> Thanks a lot in advance for your help.
>> --
>> View this message in context:
>> Sent from the Camel - Users mailing list archive at

View raw message