Hey Saurabh

Thanks for ur solution . It was indeed perfect. I overlooked on the fact
that java works on call by reference model and it's always pointers to the
memory location.
We fixed it by using Cloned objects

Cheers
Reji
On 7 Jan 2016 02:49, "CamelNayar" <nayar.saur...@gmail.com> wrote:

> Reji,
>
> I am not sure why you are facing the problem but something looks off with
> the example. You are passing an object "batch" to vm component and clearing
> the object in next line. vm component is asynchronous - so the object you
> are trying to pass will clear once you do batch.clear().
>
> Regards,
> Saurabh Nayar
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Producer-Template-Count-mismatch-tp5775891p5775932.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to