camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: Consume files periodically or on demand
Date Wed, 09 Oct 2013 19:33:10 GMT
I suggest to use the ConsumerTemplete which can read the file and send it
afterwards to a direct consumer which ia also used by the existing route.

Best,
Christian
Am 09.10.2013 14:50 schrieb "christoffer" <christoffer@k15t.com>:

> Hi,
>
> I have a route which uses the file:// component to consume files from a
> directory. The polling interval will be quite large, between 8 hours and a
> day. But now the customer added a new requirement to also consume the files
> on demand - i.e. when he clicks a button. The periodical consumption should
> still work.
> Now my question is: Is there a smart way to do this with Camel, e.g. send a
> trigger message or alike?
>
> I am using Camel 2.11.0 and Java 6 (Oracle). I have used the Java DSL with
> CamelRouteBuilder to configure my routes.
>
> Thanks in advance to all camel riders - cheers Chris
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Consume-files-periodically-or-on-demand-tp5741235.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

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