Hi

I have a use case as this:
1. read an xml file
2. extract a file name from the xml file
3. poll for the extracted filename

As I believe the easiest way to do this is with Enricher I came across the
example in the bottom of http://camel.apache.org/content-enricher.html.

The red box says:
"For example you cannot set a filename in the Exchange.FILE_NAME header and
use pollEnrich to consume only that file. For that you must set the filename
in the endpoint URI."

But the sample tries exactly that?
from("activemq:queue:order")
   .setHeader(Exchange.FILE_NAME, header("orderId"))
   .pollEnrich("file://order/data/additional")
   .to("bean:processOrder");
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/Error-in-wiki-about-pollEnrich-tp2263967p2263967.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to