question

Upvotes
Accepted
9 3 2 6

Setting XmlTraceToStdout programatically

We are not using an EmaConfig.xml. Is there a way to enable XmlTraceToStdout programatically in JAVA?

elektronrefinitiv-realtimeelektron-sdkema-apirrtjava
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.

@andre.malenfant

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

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

Otherwise please post again offering further insight into your question.

Thanks,

AHS

@andre.malenfant

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
24.6k 54 17 14

Hello @andre.malenfant

You can find an example of how to configure the EMA configurations programmatically in the EMA Java ex421_MP_ProgrammaticCfg example. The example shows how to set the XmlTraceToStdout parameter too.

Map innerMap = EmaFactory.createMap();
Map configMap = EmaFactory.createMap();
ElementList elementList = EmaFactory.createElementList();
ElementList innerElementList = EmaFactory.createElementList();
        
elementList.add(EmaFactory.createElementEntry().ascii("DefaultConsumer", "Consumer_1" ));
...
innerElementList.add(EmaFactory.createElementEntry().intValue( "XmlTraceToStdout", 1 ));
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.