Re: Xstream marshals to byte array and not String

2012-01-10 Thread Willem Jiang
Can you try this ? from(activemq:queryServer?exchangePattern=InOut) .setExchangePattern(ExchangePattern.InOut) .to(log:it.giammar.pratobackend?showHeaders=true).unmarshal()

Re: Xstream marshals to byte array and not String

2012-01-10 Thread mgiammarco
Ok I have tried but unfortunately reply is missing. Conversion to String works: [ #1 - JmsConsumer[queryServer]] pratobackend INFO Exchange[ExchangePattern:InOut, Headers:{JMSCorrelationID=null, breadcrumbId=ID:virtual1.mariosoft.mio-54532-1326218763414-4:1:-1:1:1,

Re: Xstream marshals to byte array and not String

2012-01-10 Thread Willem Jiang
How did you send the message to the ActiveMQ? Please make sure the MEP is InOut. On Wed Jan 11 02:11:03 2012, mgiammarco wrote: Ok I have tried but unfortunately reply is missing. Conversion to String works: [ #1 - JmsConsumer[queryServer]] pratobackend INFO

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
Nobody can help me? Why after I put xstream marshal/unmarshal request-reply has stopped working? 2012/1/9 mgiammarco [via Camel] ml-node+s465427n513128...@n5.nabble.com 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

Re: Xstream marshals to byte array and not String

2012-01-08 Thread Claus Ibsen
On Sun, Jan 8, 2012 at 1:44 PM, mgiammarco mgiamma...@gmail.com wrote: Hello, I am using a stomp client (that usese only Strings) to send a bean to Camel using ActiveMQ. It marshal the message to a String using xstream. Camel receives it as String, it unmarshals (using xstream) it as the

Re: Xstream marshals to byte array and not String

2012-01-08 Thread mgiammarco
Thanks I have tried your workaround and it does the conversion. Unfortunately something worse is happening: with this route and a String input my stomp client receives a reply: from(activemq:queryServer?exchangePattern=InOut)