camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kalber <>
Subject Camel 2.11.1, sql component returns a LinkedCaseInsensitiveMap for evry row, not a ArrayList
Date Thu, 05 Sep 2013 12:57:57 GMT
I configured this route :
from("sql:select obj_code, prv_targa, stc_pccode, prv_prodtela, prv_modtela,
prv_tipobus from cust_positions where obj_org in ('ICT') and obj_class in
('BUS') order by prv_concessi?dataSource=#dataSource.infor&noop=true")
				.process(new ExportFileConvert());

in the ExportFileConvert i recive for evry row and LinkedCaseInsensitiveMap
not how i excpected once an ArrayList of LinkedCaseInsensitiveMap;

How can configure the route to recive an ArrayList<LinkedCaseInsensitiveMap>


Using a template with the direct component it works, here the code ;

public void configure() throws Exception {
		.to("sql:SELECT tipo_msg, from_unixtime(rcv_time) rcv_time,
from_unixtime(event_time) event_time, codazi, matr_bus, linea, corsa,
palina, anticipo, ritardo FROM busmsg.sms_bus_# where 
date_format(from_unixtime(event_time), '%Y-%m-%d %H') > #  and 
date_format(from_unixtime(event_time), '%Y-%m-%d %H') <= # order by
			.bean(new BusmsgConvert(), "convertMap2List");

ProducerTemplate template = camelWrapper.createProducerTemplate();
 List<List&lt;?>> response = (List<List&lt;?>>) template.requestBody(
			new Object[] { processConfig.composeStartElabDate(),
					processConfig.composeEndElabDate() });

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

View raw message