This content has been marked as final.
Show 2 replies
-
1. Re: ESB CAMEL SQL
davsclaus May 3, 2012 12:35 AM (in response to lobo369)Your query, select * from dual, do not have any query parameters. And therefore the message body is not used.
The code will convert the message body to an iterator, which for a List type will walk each element in the list.
Iterator<?> iterator = exchange.getIn().getBody(Iterator.class);
-
2. Re: ESB CAMEL SQL
lobo369 May 31, 2012 1:20 PM (in response to davsclaus)Thank You for your answer davsclaus.
The problem wasn't the query, because as I said above, It is set into the "process" overrriding the configuration of the route.
The problem was with "date" parameters. I had to change "date objects" by Strings.