camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Why Json Marshal to activemq is BytesMessage?
Date Tue, 28 Jan 2014 12:15:53 GMT
I would assume the json data format marshall into a byte array / byte
input stream. And therefore its mapped as bytes when sent to JMS.

On Tue, Jan 28, 2014 at 10:07 AM, Rural Hunter <> wrote:
> Hi,
> I'm using camel 2.12.2 with this route:
> ....marshal().json(JsonLibrary.Gson).to("activemq:queue:completed")
> When I process the message in other application, I found the message in the
> queue is BytesMessage instead of expected TextMessage. I have to force it to
> TextMessage by adding parameter "?jmsMessageType=Text" in the queue name. Is
> that a correct behavior to store json as BytesMessage?

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:
Make your Camel applications look hawt, try:

View raw message