Camel + ActiveMQ Artemis 的大消息

Large messages with Camel + ActiveMQ Artemis

我正在尝试通过端点 Rest with Camel 在 Artemis 队列上 post 一条大消息(JSON 具有 +210k 个字符的格式)。

当我使用 ActiveMQ 连接工厂添加 Camel 组件时 org.apache.activemq.ActiveMQConnectionFactory - Version: 5.15.6) 我能够 post 消息成功。

但是当我使用 Artemis Connection Factory 时(org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory - Version: 2.6.2) 整个消息不在队列中 post。消息被截断,只有 106725 个字符。

我创建示例的存储库:https://github.com/vitorvr/camel-amq

谢谢。

您应该查看 this Artemis documentation page 以了解 Artemis 中的大消息支持。

有一个属性 minLargeMessageSize 默认为 100 kB(大约是您提到的剩余邮件大小)。该设置意味着 A​​rtemis 将所有超过 100 kB 的消息视为大消息,因此以不同方式处理它们