Hi LSEG support,
Try to get consumer to submit PostMsg to an Interactive Provider with:
public void onRefreshMsg(RefreshMsg refreshMsg, OmmConsumerEvent event)
{
PostMsg postMsg = EmaFactory.createPostMsg();
FieldList nestedFieldList = EmaFactory.createFieldList();
nestedFieldList.add( EmaFactory.createFieldEntry().uintValue(22, 100) );
((OmmConsumer)event.closure()).submit( postMsg.payload(nestedFieldList), event.handle() );
}
But get the exception:
Exception Type='OmmInvalidUsageException', Text='Failed to submit PostMsg on item stream. Reason: ReactorReturnCodes.INVALID_USAGE. Error text: Posting not supported by provider', Error Code='-6'
at com.refinitiv.ema.access.OmmBaseImpl.ommIUExcept(OmmBaseImpl.java:1871)
at com.refinitiv.ema.access.OmmConsumerImpl.handleInvalidUsage(OmmConsumerImpl.java:649)
at com.refinitiv.ema.access.SingleItem.rsslSubmit(ItemCallbackClient.java:3158)