activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r620500 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/Message.java
Date Mon, 11 Feb 2008 14:59:58 GMT
Author: rajdavies
Date: Mon Feb 11 06:59:56 2008
New Revision: 620500

URL: http://svn.apache.org/viewvc?rev=620500&view=rev
Log:
calculate message size even if  the minimumMessageSize == 0

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/Message.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/Message.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/Message.java?rev=620500&r1=620499&r2=620500&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/Message.java (original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/Message.java Mon
Feb 11 06:59:56 2008
@@ -625,7 +625,7 @@
 
     public int getSize() {
         int minimumMessageSize = getMinimumMessageSize();
-        if (size < minimumMessageSize) {
+        if (size < minimumMessageSize || size == 0) {
             size = minimumMessageSize;
             if (marshalledProperties != null) {
                 size += marshalledProperties.getLength();



Mime
View raw message