This is an automated email from the ASF dual-hosted git repository. jbonofre pushed a commit to branch activemq-5.18.x in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/activemq-5.18.x by this push: new b0455fd8a [AMQ-8611] Describe message size limit init parameter b0455fd8a is described below commit b0455fd8a595bbcaa863c39764264b568de86d13 Author: Nicolas Filotto <nfilo...@talend.com> AuthorDate: Tue Sep 5 12:08:47 2023 +0200 [AMQ-8611] Describe message size limit init parameter (cherry picked from commit 1bba24ddba46a55d525d204dc532a8b9130f96b7) --- activemq-web-demo/src/main/webapp/WEB-INF/web.xml | 9 +++++++++ assembly/src/release/webapps/api/WEB-INF/web.xml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/activemq-web-demo/src/main/webapp/WEB-INF/web.xml b/activemq-web-demo/src/main/webapp/WEB-INF/web.xml index cd3936612..ca3e7e281 100644 --- a/activemq-web-demo/src/main/webapp/WEB-INF/web.xml +++ b/activemq-web-demo/src/main/webapp/WEB-INF/web.xml @@ -67,6 +67,15 @@ <param-value>consumer.prefetchSize=1</param-value> </init-param> --> + <!-- + Uncomment this parameter if you plan to change the default max size of a message over REST. By default, it is set + to 100,000. Set it to -1 to disable the limitation but be aware that your AMQ instance could run out of memory if + the message is too big. See https://issues.apache.org/jira/browse/AMQ-8029 for more details. + <init-param> + <param-name>maxMessageSize</param-name> + <param-value>-1</param-value> + </init-param> + --> </servlet> <!-- the queue browse servlet --> diff --git a/assembly/src/release/webapps/api/WEB-INF/web.xml b/assembly/src/release/webapps/api/WEB-INF/web.xml index e7013186f..3b134ac34 100644 --- a/assembly/src/release/webapps/api/WEB-INF/web.xml +++ b/assembly/src/release/webapps/api/WEB-INF/web.xml @@ -34,6 +34,15 @@ <param-value>consumer.prefetchSize=1</param-value> </init-param> --> + <!-- + Uncomment this parameter if you plan to change the default max size of a message over REST. By default, it is set + to 100,000. Set it to -1 to disable the limitation but be aware that your AMQ instance could run out of memory if + the message is too big. See https://issues.apache.org/jira/browse/AMQ-8029 for more details. + <init-param> + <param-name>maxMessageSize</param-name> + <param-value>-1</param-value> + </init-param> + --> </servlet> <servlet>