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
Exchange[ExchangePa
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,
JMSPriority=4
Can you try this ?
from("activemq:queryServer?exchangePattern=InOut")
.setExchangePattern(ExchangePattern.InOut)
.to("log:it.giammar.pratobackend?showHeaders=true").unmarshal()
.xstream().to("log:it.
Nobody can help me? Why after I put xstream marshal/unmarshal request-reply
has stopped working?
2012/1/9 mgiammarco [via Camel]
> 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
>
>
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 ma
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")
.setExchangePattern(ExchangePattern.I
Ok I have tried again and I failed again.
This is my route:
from("activemq:queryServer?exchangePattern=InOut")
.setExchangePattern(ExchangePattern.InOut)
.to("log:it.giammar.pratobackend?showHeaders=true").unmarshal()
On Sun, Jan 8, 2012 at 1:44 PM, mgiammarco 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 correct
> Java Bean.
Hi,
I just checked the code of camel-xstream in the trunk, it is converting
the Java object into String.
Can you show me the route that you have ? Which version of Camel are
you using ?
BTW, you need to set the encoding on the camel-xstream data format like
this
from("direct:marshal").marsha