question

Upvotes
Accepted
5 0 1 4

username in EmaConfig

Can OmmConsumerConfig::username be specified in a EmaConfig.xml (perhaps in Consumer section)?

elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-apiauthentication
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Monitored by @Warat B.

@devtrep

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

1 Answer

· Write an Answer
Upvote
Accepted
32.2k 40 11 20

Hi @devtrep,

No, username cannot be passed from XML config file.

It is usually set from code:

consumer  = EmaFactory.createOmmConsumer(config.host("INFRA_HOST:14002").username("MY_USER"));

and can be optionally passed to the application as one of the command line arguments,

or by default, it's extracted from the environment.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.