public static void main(String[] args) {
Properties properties = new Properties();
properties.put(PropertyKeyConst.ConsumerId, "ConsumerId1");
OrderConsumer consumer = ONSFactory.createOrderedConsumer(properties);
consumer.subscribe("TopicTestONS", "*", new MessageOrderListener() {
@Override
public OrderAction consume(Message message, ConsumeOrderContext context) {
System.out.println(message);
return OrderAction.ConsumeSuccessfully;