Cannot read EmaConfig from a specific path

When I try to read EmaConfig.xml from a specific path it doesn't seem to work :

OmmConsumerConfig config(".\config\EmaConfig.xml"); => KO

config.username("xxx");

config.password("yyy");

config.clientId("zzz");

OmmConsumer consumer(config);

consumer.registerClient(ReqMsg().serviceName("ELEKTRON_DD").name("EUR="), client);

The only way to have a EmaConfig.xm working is to put in the current directory of my program.

Best Answer