camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
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 <patrick.rueegg2@raiffeisen.ch> 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
http://camel.apache.org/intercept





>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/configure-xstream-instead-of-java-serialization-as-default-tp5723617.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message