From b851a59ec58daa883ed8ed1a92722de5746c5860 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Mon, 6 Mar 2017 17:39:57 -0500 Subject: [PATCH] ARTEMIS-1009 Fixing example --- .../artemis/jms/example/AddForwardingTimeTransformer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/features/standard/divert/src/main/java/org/apache/activemq/artemis/jms/example/AddForwardingTimeTransformer.java b/examples/features/standard/divert/src/main/java/org/apache/activemq/artemis/jms/example/AddForwardingTimeTransformer.java index 2f75d4c01c..37fe74735e 100644 --- a/examples/features/standard/divert/src/main/java/org/apache/activemq/artemis/jms/example/AddForwardingTimeTransformer.java +++ b/examples/features/standard/divert/src/main/java/org/apache/activemq/artemis/jms/example/AddForwardingTimeTransformer.java @@ -17,12 +17,15 @@ package org.apache.activemq.artemis.jms.example; import org.apache.activemq.artemis.api.core.Message; +import org.apache.activemq.artemis.api.core.SimpleString; import org.apache.activemq.artemis.core.server.cluster.Transformer; public class AddForwardingTimeTransformer implements Transformer { @Override public Message transform(final Message message) { + message.putLongProperty(new SimpleString("time_of_forward"), System.currentTimeMillis()); + return message; }