camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: using Camel-Servlet component to consume application/xml message
Date Wed, 27 Mar 2013 10:56:19 GMT

You can configure the jms endpoint with jmsMessageType=Bytes

That tells Camel to force and use a javax.jmx.BytesMessage for the JMS message.
Then you dont need to convert the message beforehand.

And mind about stream caching for big payloads. The http component
forces using that

It overflows to disk when its > 64KB. So I suggest in your case set
set a higher threadshold with

So it wont overflow to disk.

On Wed, Mar 27, 2013 at 11:49 AM, yogu13 <> wrote:
> Hello Claus,
> We are converting the text message into bytes because an issue with
> ActiveMQ... ActiveMQ text message have a restriction on payload size
> shouldnt be greater than 64K as they use the API DataOutputStream.writeUTF8
> which has this restriction. I have logged it on to their forums but not much
> help there :( the link for the same is ->
> Let me check with tracer and see i am able to zero down on the isssue here..
> Thanks for the pointers claus.. Appreciate it..
> Regards.
> -Yogesh
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message