ARTEMIS-1009 Fixing example
This commit is contained in:
parent
94b47e370b
commit
b851a59ec5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue