Rocketmq: A question about MQ Consumer Client setInstanceName

Created on 20 Sep 2018  路  1Comment  路  Source: apache/rocketmq

I have test setInstanceName . If not set, the instanceName is pid ,
If not set the instanceName , A JVM have start two consumer client with diffirent groupName, but the inner
client is the same , the connection is the same .
MQClientManager is singleton , if not setInstanceName , so get getAndCreateMQClientInstance is use the same one

question

Most helpful comment

So @Ah39 would you please clarify your problem or what error occur? it is a by-design behavior to use the same client instance if not setting the instance name (i.e. using 'DEFAULT' name) . thanks

>All comments

So @Ah39 would you please clarify your problem or what error occur? it is a by-design behavior to use the same client instance if not setting the instance name (i.e. using 'DEFAULT' name) . thanks

Was this page helpful?
0 / 5 - 0 ratings