camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leen Toelen <>
Subject Timer with a bean: retry when there are results
Date Fri, 08 Jun 2012 09:44:21 GMT

I have a route like this:

<from uri="timer://foo?period=30000" />
<camel:bean ref="myReader" method="read"/>
<camel:process ref="myProcessor"/>
<camel:bean ref="myReader" method="delete"/>

where the read() method returns a list of results, but most of the time the
result list will be empty. I would like to configure the route so that when
the read() method does return at least one result, the route is processed
and continues to call read() until there are no more results.

Is this possible?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message