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:
Hiram R. Chirino 2006-05-30 15:36:29 +00:00
parent fd40b91d9f
commit 5c7cf0c3c9
23 changed files with 29 additions and 25 deletions

View File

@ -21,7 +21,7 @@
<parent>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
</parent>
<artifactId>activecluster</artifactId>
<name>ActiveCluster</name>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
</parent>
<groupId>incubator-activemq</groupId>

View File

@ -26,7 +26,7 @@
<parent>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@ -26,7 +26,7 @@
<parent>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@ -233,11 +233,15 @@ final public class OpenWireFormat implements WireFormat {
BooleanStream bs = new BooleanStream();
size += dsm.tightMarshal1(this, c, bs);
size += bs.marshalledSize();
dataOut.writeInt(size);
if( !sizePrefixDisabled ) {
dataOut.writeInt(size);
}
dataOut.writeByte(type);
bs.marshal(dataOut);
dsm.tightMarshal2(this, c, dataOut, bs);
} else {
DataOutputStream looseOut = dataOut;
ByteArrayOutputStream baos=null;
@ -253,7 +257,7 @@ final public class OpenWireFormat implements WireFormat {
if( !sizePrefixDisabled ) {
looseOut.close();
ByteSequence sequence = baos.toByteSequence();
dataOut.writeInt(sequence.getLength()-4);
dataOut.writeInt(sequence.getLength());
dataOut.write(sequence.getData(), sequence.getOffset(), sequence.getLength());
}

View File

@ -3,7 +3,7 @@
<parent>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -26,7 +26,7 @@
<parent>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@ -26,7 +26,7 @@
<parent>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@ -26,7 +26,7 @@
<parent>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@ -20,7 +20,7 @@
<parent>
<groupId>activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
</parent>
<artifactId>JMeter_sampler</artifactId>

View File

@ -26,7 +26,7 @@
<parent>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@ -26,7 +26,7 @@
<parent>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@ -26,7 +26,7 @@
<parent>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@ -20,7 +20,7 @@
<parent>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
</parent>
<artifactId>activemq-systest</artifactId>

View File

@ -26,7 +26,7 @@
<parent>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@ -26,7 +26,7 @@
<parent>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@ -26,7 +26,7 @@
<parent>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@ -26,7 +26,7 @@
<parent>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@ -29,7 +29,7 @@
<name>ActiveMQ</name>
<id>activemq</id>
<groupId>incubator-activemq</groupId>
<currentVersion>4.0.1-SNAPSHOT</currentVersion>
<currentVersion>4.0</currentVersion>
<organization>
<name>Apache Software Foundation</name>

View File

@ -26,7 +26,7 @@
<parent>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@ -25,7 +25,7 @@
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
<packaging>pom</packaging>
<name>ActiveMQ</name>

View File

@ -22,7 +22,7 @@
<name>ActiveMQ</name>
<id>activemq</id>
<groupId>incubator-activemq</groupId>
<currentVersion>4.0.1-SNAPSHOT</currentVersion>
<currentVersion>4.0</currentVersion>
<organization>
<name>Apache Software Foundation</name>

View File

@ -21,7 +21,7 @@
<parent>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-parent</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>4.0</version>
</parent>
<groupId>org.apache.activemq.sandbox</groupId>
<artifactId>activemq-sandbox</artifactId>