You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/06/17 12:15:13 UTC
[GitHub] [rocketmq] amberamberer commented on issue #1268: How to connect
broker using AK and SK?
amberamberer commented on issue #1268: How to connect broker using AK and SK?
URL: https://github.com/apache/rocketmq/issues/1268#issuecomment-502657990
> 1. DefaultMQProducer producer = new DefaultMQProducer("GID-xxx", new AclClientRPCHook(new SessionCredentials(ACL_ACCESS_KEY,ACL_SECRET_KEY)));
> 2. DefaultMQPushConsumer consumer = new DefaultMQPushConsumer("GID-xxx", new AclClientRPCHook(new SessionCredentials(ACL_ACCESS_KEY,ACL_SECRET_KEY)), new AllocateMessageQueueAveragely());
>
> Hope it may help you.
Thx!
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services