camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill <>
Subject why camel-jdbc do not return an ArrayList
Date Wed, 02 Mar 2011 03:43:48 GMT
Hi, the docs says that the jdbc component returns an ArrayList when post a
query command.
but I only got a JMSMessage.

-----------------------------when my parms from JMS queue----------
		<camel:from uri="jms:queue1" />
		<camel:transacted />
		<camel:bean beanType="com.bean.BeanA"></camel:bean>    //return the query
		<camel:to uri="jdbc:dataSource" />
		<camel:bean beanType="com.bean.BeanB"></camel:bean>
I print the exchange.getOut().getClass() , the infomation is : class
and the JmsMessage contains the return rows info:Exchange[JmsMessage:
[{FID=abc1 1956028776, FNUMBER=fff, FCOUNT=1956028776}, {FID=abc1
1956028776, FNUMBER=fff, FCOUNT=1956028776}]]

Why it's not an ArrayList<HashMap<String,Object>> object?

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

View raw message