camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: configure xstream instead of java serialization as default
Date Tue, 04 Dec 2012 15:11:51 GMT
On Tue, Dec 4, 2012 at 3:18 PM, prueegg <> wrote:
> Is it somehow possible to configure xstream as object serialization instead
> of the java serializiation?
> In my project I have various Object Messages to transfer over JMS. By
> default the Obects are serialized with the Java serialization.
> Of course I could configure the route to do marshalling and unmarshalling
> with xstream. But I want to avoid that overhead in all the route definitions
> by setting the xstream un/marshalling as default.
> Do you have any hint for me?

You can use an interceptor when sending to jms endpoints. And then do
the serialization using xstream.

See about interceptSendToEndpoint at

> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message