Camel : How to use same header in file component

162 views Asked by At

I have requirement where I need to read a message from a queue. queue has body and header and this body and header I want to use in every file read of the next processor.

from("activemq:index.init")
    //.process(new PrintProcessor())
    .from("file:/home/arvind/Desktop/Camel/Index?noop=true&recursive=true").

location

/home/arvind/Desktop/Camel/Index

I have lot of folder and files I want the header (came from activemq) while processing all file and folder.

I tried in print processor to header header from in.header and set in out.header but didn't work.

Thanks

0

There are 0 answers