Hi Bill,

Which version of Camel are you using?
I just checked the camel-jdbc code, the result should be
List<Map<String, Object>>.

You need to use exchange.getOut().getBody().getClass() to print the class of message body.


On 3/2/11 11:43 AM, Bill wrote:
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?



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Reply via email to