camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brenuart <>
Subject Re: Converter - body with single instance into a List
Date Fri, 08 Nov 2013 15:22:37 GMT
kraythe wrote
> Did you try just:
> from("direct:start").convertBodyTo(List.class).to("mock:result)

Yes I did but it doesn't work - it fails with an error message like "No type
converter available to convert from type: java.lang.String to the required
type: java.util.List..."

It works if I register a custom converter Object->List - but I'm not sure it
is wise to register a converter with a such large scope...

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

View raw message