Re: Adding custom type converter

2014-03-20 Thread Bengt Rodehav
Sorry - an idiotic mistake from my side. I had switched the "from class" and the "to class". getContext().getTypeConverterRegistry().addTypeConverter(MmlMessage.class, InputStream.class, new MmlMessage2StringTypeConverter()); should instead be: getContext().getTypeConverterRegistry().addTypeConv

Adding custom type converter

2014-03-20 Thread Bengt Rodehav
I'm using Camel 2.12.3 running in Karaf 2.3.4. I'm trying to add a custom type converter to my context but can't get it to work. My code is essentially as follows: getContext().getTypeConverterRegistry().addTypeConverter(MmlMessage.class, InputStream.class, new MmlMessage2StringTypeConverter());