NO-JIRA minor updates to sample, so it works as described in comments

- FILESIZE was set to 1 MiB instead of 2 GiB
I had a look at the previous change to FILE_SIZE and my guess is the change was included in a commit as an oversight. Please let me know if the file size was meant to be reduced and I will modify the PR to reflect that.

- ?minLargeMessageSize=10240 was omitted from URL.
This commit is contained in:
Pat Fox 2017-11-04 18:18:30 +01:00 committed by Clebert Suconic
parent 07eb1d25be
commit 21f217df72
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ public class LargeMessageExample {
* This may take some considerable time to create, send and consume - if it takes too long or you
* don't have enough disk space just reduce the file size here
*/
private static final long FILE_SIZE = 2L;// * 1024 * 1024 * 1024; // 2 GiB message
private static final long FILE_SIZE = 2L * 1024 * 1024 * 1024; // 2 GiB message
public static void main(final String[] args) throws Exception {
Process server = null;

View File

@ -16,5 +16,5 @@
# under the License.
java.naming.factory.initial=org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory
connectionFactory.ConnectionFactory=tcp://localhost:61616
connectionFactory.ConnectionFactory=tcp://localhost:61616?minLargeMessageSize=10240
queue.queue/exampleQueue=exampleQueue