camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geppo <>
Subject Dynamic "from" and pollEnrich
Date Mon, 08 May 2017 12:20:11 GMT
I have a route with files (filename_YYYYMMDD.txt) as input endpoint i.e.

      .process(new MyProcessor);

I want to trigger this route from a restful where the date part of the file
is specified in input i.e.

   template.sendBodyAndHeaders("direct:myRoute", null, "header:date",

so I've thought I could modify my route so that the input endpoint is
dynamic by using pollEnrich i.e.

      .process(new MyProcessor());

But nothing happens :(

If I had a timeout to pollEnrich then it waits for the milliseconds I
specified and then it runs MyProcessor regardless of the fact that the file
exists or not.

What am I doing wrong?
Thank you!

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message