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.
The difference between the on-stream and off-stream posts are the following:
In summary, On-Stream Post the application subscribes "ABC.CD" item and then sends the OMM Post message for the "ABC.CD" item data (with calculated fields, extra value, etc) with the "ABC.CD" item stream.
The Off-Stream Post means the application sends the OMM Post message for the "ABC.CD" item data with the Login stream.
I suggest you check the following ATS - Posting articles that give you a step-by-step guide and the example codes.