Can I use the same username for multiple OmmConsumer instances, or are there restrictions?
Hello @xinjames.chen,
I presume you are referring to the Machine ID which is used to connect to RTO cloud to get data. The token generated for a particular ID is invalidated when another instance uses the same ID to get another token. It is recommended that each instance or application have its own unique machine ID for getting data.
If this is not what you meant, and were referring to DACS ID, used when getting data from local RTMDS, then yes, same username may be used in multiple consumers.
consumer1 = EmaFactory.createOmmConsumer(EmaFactory.createOmmConsumerConfig().host(host).username(username));
consumer2 = EmaFactory.createOmmConsumer(EmaFactory.createOmmConsumerConfig().host(host).username(username));
May I create two OmmConsumer instances using the same username.