Change default EMA timeout programmatically ?

it seems the default timeout for EMA Java is 45000 milliseconds, is it possible to change that programmatically?

I did not find anything in OmmConsumerConfig about that.

I am not using EmaConfig.xml and i am creating my OmmConsumer like that:

OmmConsumerConfig config = EmaFactory.createOmmConsumerConfig();
consumer = EmaFactory.createOmmConsumer(config
.host(host)
.username(username)
.applicationId(applicationId)
);

Best Answer

  • Hello @GAUTHIER.ROEBROECK

    Unfortunately, EMA Java does not support setting timeout programmatically; you have to set the timeout in EmaConfig.xml. Anyway, EMA Java is open source. Hence, you can modify EMA Java source code to be able to set timeout programmatically. EMA Java source code can be found in <EMA package>\Ema\Src\main

Answers