You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Doug Whitfield <dw...@perforce.com.INVALID> on 2023/03/22 17:29:58 UTC
How to set MAX_MESSAGE_SIZE_TAG?
Hi folks,
I am looking into this issue: https://issues.apache.org/jira/browse/AMQ-8611
I believe that jira is a casualty of https://issues.apache.org/jira/browse/AMQ-8029
In AMQ-8029 I see this comment: "I introduced a dependency on commons-io's BoundedInputStream for this, with a default (configurable) bound of 100000 bytes."
That led me to this code: https://github.com/apache/activemq/blob/d48cf3758312a25122508854946c399a2e6f6f69/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java
However, I am not sure how to configure this value.
I believe it would look something like this:
<web-app>
<servlet>
<servlet-name>HandleMessage</servlet-name>
<servlet-class>SubClassOfMessageServletSupport</servlet-class>
<init-param>
<param-name>maxMessageSize</param-name>
<param-value>1000000</param-value>
</init-param>
</servlet>
However, I do not know what the servlet-class nor servlet-name would be called. Am I looking in the correct places?
This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.