activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [1/2] activemq-artemis git commit: NO-JIRA minor updates to sample, so it works as described in comments
Date Mon, 06 Nov 2017 16:31:24 GMT
Repository: activemq-artemis
Updated Branches:
  refs/heads/master 07eb1d25b -> 7e94d342c


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.


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/21f217df
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/21f217df
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/21f217df

Branch: refs/heads/master
Commit: 21f217df72a975dbd8b10225d8d7abf12b6dd041
Parents: 07eb1d2
Author: Pat Fox <pat.g.fox@gmail.com>
Authored: Sat Nov 4 18:18:30 2017 +0100
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Mon Nov 6 11:27:20 2017 -0500

----------------------------------------------------------------------
 .../apache/activemq/artemis/jms/example/LargeMessageExample.java   | 2 +-
 .../standard/large-message/src/main/resources/jndi.properties      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/21f217df/examples/features/standard/large-message/src/main/java/org/apache/activemq/artemis/jms/example/LargeMessageExample.java
----------------------------------------------------------------------
diff --git a/examples/features/standard/large-message/src/main/java/org/apache/activemq/artemis/jms/example/LargeMessageExample.java
b/examples/features/standard/large-message/src/main/java/org/apache/activemq/artemis/jms/example/LargeMessageExample.java
index da47577..702fe41 100644
--- a/examples/features/standard/large-message/src/main/java/org/apache/activemq/artemis/jms/example/LargeMessageExample.java
+++ b/examples/features/standard/large-message/src/main/java/org/apache/activemq/artemis/jms/example/LargeMessageExample.java
@@ -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;

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/21f217df/examples/features/standard/large-message/src/main/resources/jndi.properties
----------------------------------------------------------------------
diff --git a/examples/features/standard/large-message/src/main/resources/jndi.properties b/examples/features/standard/large-message/src/main/resources/jndi.properties
index 93537c4..75a7b5f 100644
--- a/examples/features/standard/large-message/src/main/resources/jndi.properties
+++ b/examples/features/standard/large-message/src/main/resources/jndi.properties
@@ -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


Mime
View raw message