I suggest you don’t create the such large scope converter, it may introduce some side effect to camel. String —>List<String> should be OK.
-- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Friday, November 8, 2013 at 11:22 PM, brenuart wrote: > 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: > http://camel.465427.n5.nabble.com/Converter-body-with-single-instance-into-a-List-tp5742857p5742882.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).
