mirror of https://github.com/apache/activemq.git
Merged in fix for https://issues.apache.org/activemq/browse/AMQ-718
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/branches/activemq-4.0@410305 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fd40b91d9f
commit
5c7cf0c3c9
|
@ -21,7 +21,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>activecluster</artifactId>
|
<artifactId>activecluster</artifactId>
|
||||||
<name>ActiveCluster</name>
|
<name>ActiveCluster</name>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|
|
@ -234,10 +234,14 @@ final public class OpenWireFormat implements WireFormat {
|
||||||
size += dsm.tightMarshal1(this, c, bs);
|
size += dsm.tightMarshal1(this, c, bs);
|
||||||
size += bs.marshalledSize();
|
size += bs.marshalledSize();
|
||||||
|
|
||||||
|
if( !sizePrefixDisabled ) {
|
||||||
dataOut.writeInt(size);
|
dataOut.writeInt(size);
|
||||||
|
}
|
||||||
|
|
||||||
dataOut.writeByte(type);
|
dataOut.writeByte(type);
|
||||||
bs.marshal(dataOut);
|
bs.marshal(dataOut);
|
||||||
dsm.tightMarshal2(this, c, dataOut, bs);
|
dsm.tightMarshal2(this, c, dataOut, bs);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
DataOutputStream looseOut = dataOut;
|
DataOutputStream looseOut = dataOut;
|
||||||
ByteArrayOutputStream baos=null;
|
ByteArrayOutputStream baos=null;
|
||||||
|
@ -253,7 +257,7 @@ final public class OpenWireFormat implements WireFormat {
|
||||||
if( !sizePrefixDisabled ) {
|
if( !sizePrefixDisabled ) {
|
||||||
looseOut.close();
|
looseOut.close();
|
||||||
ByteSequence sequence = baos.toByteSequence();
|
ByteSequence sequence = baos.toByteSequence();
|
||||||
dataOut.writeInt(sequence.getLength()-4);
|
dataOut.writeInt(sequence.getLength());
|
||||||
dataOut.write(sequence.getData(), sequence.getOffset(), sequence.getLength());
|
dataOut.write(sequence.getData(), sequence.getOffset(), sequence.getLength());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>activemq</groupId>
|
<groupId>activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>JMeter_sampler</artifactId>
|
<artifactId>JMeter_sampler</artifactId>
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>activemq-systest</artifactId>
|
<artifactId>activemq-systest</artifactId>
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
<name>ActiveMQ</name>
|
<name>ActiveMQ</name>
|
||||||
<id>activemq</id>
|
<id>activemq</id>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<currentVersion>4.0.1-SNAPSHOT</currentVersion>
|
<currentVersion>4.0</currentVersion>
|
||||||
|
|
||||||
<organization>
|
<organization>
|
||||||
<name>Apache Software Foundation</name>
|
<name>Apache Software Foundation</name>
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
<relativePath>../pom.xml</relativePath>
|
<relativePath>../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>ActiveMQ</name>
|
<name>ActiveMQ</name>
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<name>ActiveMQ</name>
|
<name>ActiveMQ</name>
|
||||||
<id>activemq</id>
|
<id>activemq</id>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<currentVersion>4.0.1-SNAPSHOT</currentVersion>
|
<currentVersion>4.0</currentVersion>
|
||||||
|
|
||||||
<organization>
|
<organization>
|
||||||
<name>Apache Software Foundation</name>
|
<name>Apache Software Foundation</name>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>incubator-activemq</groupId>
|
<groupId>incubator-activemq</groupId>
|
||||||
<artifactId>activemq-parent</artifactId>
|
<artifactId>activemq-parent</artifactId>
|
||||||
<version>4.0.1-SNAPSHOT</version>
|
<version>4.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>org.apache.activemq.sandbox</groupId>
|
<groupId>org.apache.activemq.sandbox</groupId>
|
||||||
<artifactId>activemq-sandbox</artifactId>
|
<artifactId>activemq-sandbox</artifactId>
|
||||||
|
|
Loading…
Reference in New Issue