Re: Xstream marshals to byte array and not String

2012-01-10 Thread Willem Jiang
}, BodyType:byte[], Body:?xml version='1.0' encoding='UTF-8'?it.giammar.pratomodel.QueryRequestautomatictrue/automaticquerystomp stomp/query/it.giammar.pratomodel.QueryRequest] -- View this message in context: http://camel.465427.n5.nabble.com/Xstream-marshals-to-byte-array-and-not-String

Re: Xstream marshals to byte array and not String

2012-01-10 Thread mgiammarco
: http://camel.465427.n5.nabble.com/Xstream-marshals-to-byte-array-and-not-String-tp5129211p5134795.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Xstream marshals to byte array and not String

2012-01-10 Thread Willem Jiang
'?it.giammar.pratomodel.QueryRequestautomatictrue/automaticquerystomp stomp/query/it.giammar.pratomodel.QueryRequest] -- View this message in context: http://camel.465427.n5.nabble.com/Xstream-marshals-to-byte-array-and-not-String-tp5129211p5134795.html Sent from the Camel - Users mailing list archive at Nabble.com

Re: Xstream marshals to byte array and not String

2012-01-09 Thread mgiammarco
I mean does the request reply continue to work if the last step of the route is not a .to() but a .xstream() ? It seems not for me -- View this message in context: http://camel.465427.n5.nabble.com/Xstream-marshals-to-byte-array-and-not-String-tp5129211p5131281.html Sent from the Camel - Users

Re: Xstream marshals to byte array and not String

2012-01-09 Thread mgiammarco
not for me -- If you reply to this email, your message will be added to the discussion below: http://camel.465427.n5.nabble.com/Xstream-marshals-to-byte-array-and-not-String-tp5129211p5131281.html To unsubscribe from Xstream marshals to byte array and not String

Xstream marshals to byte array and not String

2012-01-08 Thread mgiammarco
marshal it again. Unfortunately stomp client cannot process the message because xstream in Camel produce a byte[] array and not a String as output. Why? how can I force it to use a String? Thanks, Mario -- View this message in context: http://camel.465427.n5.nabble.com/Xstream-marshals-to-byte

Re: Xstream marshals to byte array and not String

2012-01-08 Thread Claus Ibsen
the .convertBodyTo(String.class) to force a type conversion. Thanks, Mario -- View this message in context: http://camel.465427.n5.nabble.com/Xstream-marshals-to-byte-array-and-not-String-tp5129211p5129211.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen

Re: Xstream marshals to byte array and not String

2012-01-08 Thread mgiammarco
in context: http://camel.465427.n5.nabble.com/Xstream-marshals-to-byte-array-and-not-String-tp5129211p5129953.html Sent from the Camel - Users mailing list archive at Nabble.com.