How to enable Multiple buffer channel in HornetQ

52 Views Asked by At

I am working on a app which has a lot of asynchronous messages hosted by HornetQ 2.3.21. By some process my message size goes more than 2GB and the message starts failing with this message on the server:

HQ212017: error adding packet: java.lang.IllegalStateException: Maximum size of 2gb exceeded
   at org.jboss.netty.buffer.DynamicChannelBuffer.ensureWritableBytes(DynamicChannelBuffer.java:82) [netty-3.6.9.Final-redhat-1.jar:3.6.9.Final-redhat-1]

I want to enable multiple buffer channel for the app. Can someone please help me out with a way to achieve that?

1

There are 1 best solutions below

2
Justin Bertram On

I don't believe there is any way to enable "multiple buffer channel" in HornetQ. This looks like a bug in HornetQ. The HornetQ code-base is no longer maintained since its donation to the Apache ActiveMQ community 6 years ago. HornetQ is still open-source so you're free to fix any bugs you find and build your own release(s), but I recommend you move to ActiveMQ Artemis which is based on the donated HornetQ code-base.