Ah wonder if mapping to class is only supported when outputType=SelectOne.
Can you pls suggest any alternative to convert List of rows returned from JDBC component to objects or XML ?
Just mind that CAMEL-7645 has been implemented and will be part of Camel 2.14 which is intended to be included in JBoss Fuse 6.2.
As an alternative you can write some java code that does the list -> object/xml conversion.
There is also other kind of sql components with Apache Camel such as camel-mybatis that is stronger.