RongtongJin commented on issue #123: How to set shardingKey in RocketMQTemplate?
URL: https://github.com/apache/rocketmq-spring/issues/123#issuecomment-524279008
 
 
   @leizihui Setting shardingKey is not supported in RocketMQTemplate yet, but 
you can set MessageQueueSelector to send ordered messages.
   ```java
   rocketMQTemplate.setMessageQueueSelector(new MessageQueueSelector() {
      public MessageQueue select(List<MessageQueue> mqs, 
org.apache.rocketmq.common.message.Message msg,
                   Object arg) {
                   ……
      }
   });
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to