I am trying to create an off-stream contribution app using ema api
I was initially using the on-stream api
long handle = consumer.registerClient( EmaFactory.createReqMsg().serviceName("ATS").name(itemName), appClient);
But then I was told if I register the ric name, its considered on-stream api and it has some disadvantages.
Instead I should use off-stream api where I just create a client and start contributing using the generic handle that I receive.
long handle = consumer.registerClient( EmaFactory.createReqMsg().serviceName("ATS"), appClient);
But this just doesn't work. I am getting errors that the request is missing the name and invalid handle.
Could someone clarify on-stream vs off-stream contribution for me please.