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 <imranrazak...@gmail.com> 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

Reply via email to