Hi,

I'm new. I have a question. How can I conserve the names and extension of
inputfile? Because when I modify each files of my folder, in output the
names and extension are not the same (ID-1546...).

I use Apache Camel 2.11, language : Groovy.

my source code :

context.addRoutes(new RouteBuilder(){
        def void configure(){
                
                from("file://directory?noop=true")
                .process(new Processor(){
                                public void process(Exchange exchange){
                                        String body = 
exchange.getIn().getBody(String.class)
                                        body = body + " Hello World"
                                        exchange.getOut().setBody(body)
                                }
                })
                .to("file://directory")
                
        }
})

I used fileName but it is only for 1 file. is there a uri option that it
does that I ask, or I need to use a pattern?

Thanks



--
View this message in context: 
http://camel.465427.n5.nabble.com/conserve-output-filename-tp5731440.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to