On Wed, Sep 15, 2010 at 10:06 AM, Claus Ibsen <claus.ib...@gmail.com> wrote:
> On Wed, Sep 15, 2010 at 10:03 AM, Olivier.Roger <olivier.ro...@bsb.com> wrote:
>>
>> You're right, I spoke too soon. sorry.
>>
>> The documentation mix streamCaching and streamCache on the same page (I
>> suppose it changed on 2.0).
>> However, event with streamCache="fasle", the route still attempt to convert
>> from my custom Type to StreamCache.
>>
>> I don't really see why it would do that if streamCache is set to false. Any
>> idea about that?
>

If you route to a log endpoint then the logger will try to convert to
stream cache to be able to log the stream without causing the stream
to be "closed" afterwards.
In your custom fallback type converter you should just ignore this and
only convert the types you can do. So do an instanceof check
beforehand, and not a direct type cast.

Because its a fallback type converter it will be invoked for many
different types, when Camel cannot find a dedicated type converter at
first.


> No use a debugger.
>
> What do you do in your route? Do you use Jetty by any chance?
>
>
>
>> --
>> View this message in context: 
>> http://camel.465427.n5.nabble.com/Converter-Generics-tp2839250p2840234.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to