This content has been marked as final.
Show 4 replies
-
1. Re: JDBC ResultSet to Java Object/XML
davsclaus Jul 29, 2014 2:44 AM (in response to vishvjit)Ah wonder if mapping to class is only supported when outputType=SelectOne.
-
2. Re: JDBC ResultSet to Java Object/XML
davsclaus Jul 29, 2014 2:47 AM (in response to davsclaus)Checked the source code and its only supported currently for 1 row.
Logged a ticket to improve this: https://issues.apache.org/jira/browse/CAMEL-7645
-
3. Re: JDBC ResultSet to Java Object/XML
vishvjit Aug 4, 2014 2:46 PM (in response to davsclaus)Thanks Claus.
Can you pls suggest any alternative to convert List of rows returned from JDBC component to objects or XML ?
-
4. Re: JDBC ResultSet to Java Object/XML
davsclaus Aug 12, 2014 3:48 AM (in response to vishvjit)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.