Found the reason behind the above error. Route is ending with a push to
archive directory but internally exchange body is sent as the servlet
response too. For sending the response camel is again trying to read the
file from consumed location.
Modified the route as shown below.
Hi Chris,
pollEnrich is the right option and it is doing the trigger as well, but I am
seeing below error.
Basically it is moving(this is what I need to do on trigger) the file on
giving the trigger and after that it is trying to read the file again.
/java.io.FileNotFoundException: C:\feed\event
We are using file consumer template, but file consumer by default polls the
directory, but we need to prevent the continuous polling and look for the
file only when we ask it to do.
--
View this message in context:
http://camel.465427.n5.nabble.com/servlet-event-based-file-consuming-using-f
Can you use the consumer template?
Sent from a mobile device
Am 08.04.2013 16:08 schrieb "praveenbillampati" :
> Hi All,
>
> Any idea on this?
>
> Thanks
> Praveen
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/servlet-event-based-file-consuming-using-file-componen
On Mon, Apr 8, 2013 at 7:08 AM, praveenbillampati <
praveenbillamp...@gmail.com> wrote:
> Hi All,
>
> Any idea on this?
>
Take a look here - http://camel.apache.org/content-enricher.html. The part
you'll be interested in is the pollEnrich section. It has an example of
what you are trying to do.
Hi All,
Any idea on this?
Thanks
Praveen
--
View this message in context:
http://camel.465427.n5.nabble.com/servlet-event-based-file-consuming-using-file-component-tp5730356p5730503.html
Sent from the Camel - Users mailing list archive at Nabble.com.