question

Upvotes
Accepted
7 3 0 5

Setting XmlTraceToStdout programatically

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

elektronrefinitiv-realtimeelektron-sdkrrtema-apijava
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
11.5k 16 7 10

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea