camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject How to obtain Exchange object in TypeConverter?
Date Mon, 30 Nov 2015 19:59:56 GMT

I'm using Camel 2.16.0 and wrote a TypeConverter which expects the Exchange
Object as a second method parameter, as described in
However, the Exchange Parameter is received as null because when calling
camelContext.getTypeConverter.mandatoryConvertTo[(clazz, body) it just calls
mandatoryConvertTo(type, null, value); (Exchange is the second parameter

Now i'm trying to figure out what's the best way to obtain an Exchange
object in my Converter. Since my converter doesn't know about the
CamelContext or the endpoint, i cannot create a new DefaultExchange.
Any help is appreciated.

Kind regards,

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message