diff --git a/activemq-core/src/main/java/org/apache/activemq/openwire/v3/MessageMarshaller.java b/activemq-core/src/main/java/org/apache/activemq/openwire/v3/MessageMarshaller.java index b72d74f5c4..c0fd5e660b 100644 --- a/activemq-core/src/main/java/org/apache/activemq/openwire/v3/MessageMarshaller.java +++ b/activemq-core/src/main/java/org/apache/activemq/openwire/v3/MessageMarshaller.java @@ -103,6 +103,8 @@ public abstract class MessageMarshaller extends BaseCommandMarshaller { else { info.setCluster(null); } + info.setBrokerInTime(tightUnmarshalLong(wireFormat, dataIn, bs)); + info.setBrokerOutTime(tightUnmarshalLong(wireFormat, dataIn, bs)); info.afterUnmarshall(wireFormat); @@ -143,6 +145,8 @@ public abstract class MessageMarshaller extends BaseCommandMarshaller { bs.writeBoolean(info.isRecievedByDFBridge()); bs.writeBoolean(info.isDroppable()); rc += tightMarshalObjectArray1(wireFormat, info.getCluster(), bs); + rc+=tightMarshalLong1(wireFormat, info.getBrokerInTime(), bs); + rc+=tightMarshalLong1(wireFormat, info.getBrokerOutTime(), bs); return rc + 9; } @@ -185,6 +189,8 @@ public abstract class MessageMarshaller extends BaseCommandMarshaller { bs.readBoolean(); bs.readBoolean(); tightMarshalObjectArray2(wireFormat, info.getCluster(), dataOut, bs); + tightMarshalLong2(wireFormat, info.getBrokerInTime(), dataOut, bs); + tightMarshalLong2(wireFormat, info.getBrokerOutTime(), dataOut, bs); info.afterMarshall(wireFormat); @@ -253,6 +259,8 @@ public abstract class MessageMarshaller extends BaseCommandMarshaller { else { info.setCluster(null); } + info.setBrokerInTime(looseUnmarshalLong(wireFormat, dataIn)); + info.setBrokerOutTime(looseUnmarshalLong(wireFormat, dataIn)); info.afterUnmarshall(wireFormat); @@ -296,6 +304,8 @@ public abstract class MessageMarshaller extends BaseCommandMarshaller { dataOut.writeBoolean(info.isRecievedByDFBridge()); dataOut.writeBoolean(info.isDroppable()); looseMarshalObjectArray(wireFormat, info.getCluster(), dataOut); + looseMarshalLong(wireFormat, info.getBrokerInTime(), dataOut); + looseMarshalLong(wireFormat, info.getBrokerOutTime(), dataOut); } } diff --git a/activemq-core/src/test/java/org/apache/activemq/openwire/v3/MessageTestSupport.java b/activemq-core/src/test/java/org/apache/activemq/openwire/v3/MessageTestSupport.java index ef7ca2d1dd..d6c19dca2f 100644 --- a/activemq-core/src/test/java/org/apache/activemq/openwire/v3/MessageTestSupport.java +++ b/activemq-core/src/test/java/org/apache/activemq/openwire/v3/MessageTestSupport.java @@ -88,5 +88,7 @@ public abstract class MessageTestSupport extends BaseCommandTestSupport { } info.setCluster(value); } + info.setBrokerInTime(4); + info.setBrokerOutTime(5); } }