ARTEMIS-1009 Fixing example

This commit is contained in:
Clebert Suconic 2017-03-06 17:39:57 -05:00
parent 94b47e370b
commit b851a59ec5
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}