Re: reading data mutiple times from camel's CachedOutputStream

2013-02-04 Thread Aki Yoshida
Hi Willem, thanks for the clarification. I thought one potential use case of this CachedOutputStream could be to allow the data to be read independently after cached. Have there not been any such use cases? If these use cases are considered not important, that will be okay too. The background to

Re: reading data mutiple times from camel's CachedOutputStream

2013-02-01 Thread Willem Jiang
Hi Aki, The stream is supposed to be read once. If you want to read it twice, you need to call the reset method. In camel we have an intercepter which will call the reset method before routing the exchange to the other endpoint if you enable the stream cache feature. 发自我的 iPhone 在 2013-2-2,上午