You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by prueegg <pa...@raiffeisen.ch> on 2012/12/04 15:18:45 UTC

configure xstream instead of java serialization as default

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?



--
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.

Re: configure xstream instead of java serialization as default

Posted by prueegg <pa...@raiffeisen.ch>.
Hi Claus

Thanks.

I think that works perfectly for me.

Patrick



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

Re: configure xstream instead of java serialization as default

Posted by Claus Ibsen <cl...@gmail.com>.
On Tue, Dec 4, 2012 at 3:18 PM, prueegg <pa...@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