From 7993aae794cb9ac6195262fc58038bf85800a1c8 Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Fri, 22 Jun 2007 12:47:12 +0000 Subject: [PATCH] Add default constructor git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@549805 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/kaha/CommandMarshaller.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/activemq-core/src/main/java/org/apache/activemq/kaha/CommandMarshaller.java b/activemq-core/src/main/java/org/apache/activemq/kaha/CommandMarshaller.java index 1317cf4e52..1141de1594 100644 --- a/activemq-core/src/main/java/org/apache/activemq/kaha/CommandMarshaller.java +++ b/activemq-core/src/main/java/org/apache/activemq/kaha/CommandMarshaller.java @@ -21,6 +21,7 @@ import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import org.apache.activemq.kaha.Marshaller; +import org.apache.activemq.openwire.OpenWireFormat; import org.apache.activemq.util.ByteSequence; import org.apache.activemq.wireformat.WireFormat; @@ -36,6 +37,10 @@ public class CommandMarshaller implements Marshaller { } + public CommandMarshaller(){ + this(new OpenWireFormat()); + } + public void writePayload(Object object,DataOutput dataOut) throws IOException{ ByteSequence packet = wireFormat.marshal(object); dataOut.writeInt(packet.length);