This content has been marked as final.
Show 6 replies
-
1. Re: CAMEL file poller - FileNotFoundException
davsclaus Mar 24, 2010 7:49 AM (in response to sriram_imshriram)Its stream cache. Disable that. As it will auto spool to files when the data > 64kb.
In Camel 2.x stream cache is disabled by default.
-
2. Re: CAMEL file poller - FileNotFoundException
sriram_imshriram Mar 24, 2010 9:40 AM (in response to davsclaus)and in CAMEL 1.6?
-
3. Re: CAMEL file poller - FileNotFoundException
davsclaus Mar 24, 2010 10:04 AM (in response to sriram_imshriram) -
4. Re: CAMEL file poller - FileNotFoundException
sriram_imshriram Mar 25, 2010 9:49 AM (in response to davsclaus)The FileNotFound is gone now by including the code in CAMEL 1.6 as
this.getContext().getProerties().put(CachedOutputStream.THRESHOLD,"0");
since when i use it in the camel-context.xml i get Invalid Property 'streamCache'.
But now i am getting
java.io.IOException: Bad file number
.
.
.
.
at org.apache.camel.converter.IOConverter.toString(IOConverter.java:209)
-
5. Re: CAMEL file poller - FileNotFoundException
njiang Mar 25, 2010 8:24 PM (in response to sriram_imshriram)If you want to active the File cache, you need to set threshold with a big number.
this.getContext().getProerties().put(CachedOutputStream.THRESHOLD,"10000000");
And you can also set the Temp file directory with this code
exchange.getContext().getProperties().put(achedOutputStream.TEMP_DIR, "\tmp\camel");
-
6. Re: CAMEL file poller - FileNotFoundException
divakar May 6, 2010 6:57 AM (in response to njiang)This worked, Thanks...