Thnx Claus for your response.  If nesting of the .from is not allowwed I
would expect an exception to be thrown. Now the route just ends normally,
leaving the programmer is a desperate state :-).

I fixed it now. Not by using the pollEnrich but by setting the temp file in
the exchange body when the fillTempFileWithaLotOfData processor is done
writing the data to the temp file like this :


        public void process(Exchange exchange) throws Exception {
        try 
        {
           ...... lots of other code         
           //create a temp file
            File myFile = new File(tmpFileUri);
            BufferedWriter buffer = new BufferedWriter(new FileWriter(myFile));
            
            // ... write lots of data to buffer 
           
            buffer.close();
           * exchange.getIn().setBody(myFile);*
        }
        finally 
        {
        }
}

This seems to be working OK.

Thnx again.

Jan van de Klok



--
View this message in context: 
http://camel.465427.n5.nabble.com/Cannot-write-content-of-temp-file-to-remote-ftp-tp5780480p5780485.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to