And for the record nothing seems to work when using dynamic file names:

This works:
<route>
        <from uri="file:test_data/in?move=../../done&amp;delay=10s" />
        <to uri="seda:in" />
</route>
 <route>
        <from uri="seda:in" />
        <pollEnrich uri="file:test_data/enrich?fileName=enrich2.txt" />
        <to uri="file:test_data/out?fileName=out.txt" />
</route>

These don't:

<route>
        <from uri="file:test_data/in?move=../../done&amp;delay=10s" />
        <to uri="seda:in" />
</route>
<route>
        <from uri="seda:in" />
        <setHeader headerName="servicefile">
                <simple>enrich2.txt</simple>
        </setHeader>
        <pollEnrich uri="file:test_data/enrich?fileName=${in.header.filename}" 
/>
        <to uri="file:test_data/out?fileName=out.txt" />
</route>
--------------
<route>
        <from uri="file:test_data/in?move=../../done&amp;delay=10s" />
        <to uri="seda:in" />
</route>
<route>
        <from uri="seda:in" />
        <setHeader headerName="CamelFileName">
                <simple>enrich2.txt</simple>
        </setHeader>
        <pollEnrich uri="file:test_data/enrich" />
        <to uri="file:test_data/out?fileName=out.txt" />
</route>

As the wiki is a bit ambiguous I'm not sure what is supposed to work and
what isn't
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/Error-in-wiki-about-pollEnrich-tp2263967p2263987.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to