camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: Exceptions when aggregating messages
Date Thu, 11 Jul 2013 20:54:34 GMT
Post your code if you could, and I can help take a look.


On Thu, Jul 11, 2013 at 7:42 AM, cristisor <cristisor_ac@yahoo.com> wrote:

> Hello,
>
> I'm trying to aggregate a bunch of messages, each containing a String as
> body, the In message from each exchange that comes to the aggregator, so
> that I can send only one exchange containing the list of strings to the
> next
> route in the end.
>
> If I set the body as a List<org.apache.camel.Message> the send operation
> fails with the following:
> NotSerializableException: org.apache.camel.impl.DefaultMessage
>
> This is understandable since Message is not serializable, but then I tried
> aggregating a list List<MessageBean> where MessageBean implements the
> Serializable interface and contains the body(String), the
> header(CaseInsensitiveMap) and properties(CaseInsensitiveMap). This time
> the
> exception is different:
> NotSerializableException: org.apache.camel.component.file.GenericFile
>
> Can someone spot the problem? I could aggregated the complete exchanges and
> send them, but isn't the overhead too big?
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Exceptions-when-aggregating-messages-tp5735523.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message