Grokbase Groups Camel users May 2016
FAQ
Try with lower value than 1000 as that is likely too many values in an
IN operator / prepared statement.


On Tue, May 31, 2016 at 8:18 AM, imranrazakhan wrote:
Hi Claus Ibsen,

I tried above code by following this section, Sorry for my ignorance if i m
missing something.

I am using // use a list, and my aggregator is returning ArrayList of
strings

Following is my custom aggregator code

Message newIn = newExchange.getIn();
Object newBody = newIn.getBody();
ArrayList msisdns = null;
if (oldExchange == null) {
msisdns = new ArrayList<String>();
msisdns.add(newBody);
newIn.setBody(msisdns);
return newExchange;
} else {
Message in = oldExchange.getIn();
msisdns = in.getBody(ArrayList.class);
msisdns.add(newBody);
return oldExchange;
}

Regards,





--
View this message in context: http://camel.465427.n5.nabble.com/camel-sql-SQL-IN-Query-issue-2-17-1-tp5783264p5783271.html
Sent from the Camel - Users mailing list archive at Nabble.com.


--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 6 of 18 | next ›
Discussion Overview
groupusers @
categoriescamel
postedMay 30, '16 at 8:09p
activeJun 1, '16 at 12:06p
posts18
users3
websitecamel.apache.org

People

Translate

site design / logo © 2017 Grokbase