This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/main by this push:
     new 1bba24ddba [AMQ-8611] Describe message size limit init parameter
     new 6236faccec Merge pull request #1047 from 
essobedo/AMQ-8611/describe-message-size-limit-init-param
1bba24ddba is described below

commit 1bba24ddba46a55d525d204dc532a8b9130f96b7
Author: Nicolas Filotto <[email protected]>
AuthorDate: Tue Sep 5 12:08:47 2023 +0200

    [AMQ-8611] Describe message size limit init parameter
---
 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 98ff819917..034de29127 100644
--- a/activemq-web-demo/src/main/webapp/WEB-INF/web.xml
+++ b/activemq-web-demo/src/main/webapp/WEB-INF/web.xml
@@ -68,6 +68,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 5b27792355..3cc8a481a9 100644
--- a/assembly/src/release/webapps/api/WEB-INF/web.xml
+++ b/assembly/src/release/webapps/api/WEB-INF/web.xml
@@ -35,6 +35,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>
 
     <!-- AMQ-9239 jakarta - jolokia does not support jakarta

Reply via email to