I made few changes and my custom bean is being called now. <camel:split stopOnException="true"> <camel:method bean="com.processor.SodFundListSplitter" method="split" /> <camel:to ref="sodSQLEndPoint"/> </camel:split>
and changed method in bean to public class SodFundListSplitter { @SuppressWarnings("unchecked") public List<String> split(Exchange exchange) { return exchange.getIn().getBody(List.class); } } But I need to use the splitterBean at more than one places in the context. So I am not convinced to write it inline at every place. I tries using ref as well instead on bean in the camel:method, but invain. -- View this message in context: http://camel.465427.n5.nabble.com/Using-custom-bean-for-splitter-using-spring-camel-tp5718236p5718364.html Sent from the Camel - Users mailing list archive at Nabble.com.