0
votes

I'm trying to post a large message (JSON Format with +210k characters) on a Artemis Queue trough a endpoint Rest with Camel.

When I add a Camel Component with ActiveMQ Connection Factory org.apache.activemq.ActiveMQConnectionFactory - Version: 5.15.6) I'm able to post the message with success.

But when I use the Artemis Connection Factory ( org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory - Version: 2.6.2) the entire message isn't post in the Queue. The message was cut off reaming only 106725 characters.

Repository where I've create the examples: https://github.com/vitorvr/camel-amq

Thanks.

1

1 Answers

1
votes

You should check out this Artemis documentation page for large message support in Artemis.

There is an attribute minLargeMessageSize that is by default 100 kB (roughly the remaining message size you mention). That setting means that Artemis treats all messages that are more than 100 kB as large message and therefore handles them differently.