camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill <chenfeng.f...@gmail.com>
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
command
		<camel:to uri="jdbc:dataSource" />
		<camel:bean beanType="com.bean.BeanB"></camel:bean>
----------------------------------------------------------------------
I print the exchange.getOut().getClass() , the infomation is : class
org.apache.camel.component.jms.JmsMessage 
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: http://camel.465427.n5.nabble.com/why-camel-jdbc-do-not-return-an-ArrayList-tp3406057p3406057.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message