OmmConsumer submit PostMsg error (java EMA 3.7.0)

Jianping
Jianping Newcomer
edited February 26 in EMA

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)

Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answer

Answers

  • Thanks. Yes, SupportOMMPost needs to be set to 1 in login response

  • Hello @Jianping

    Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

    If so, please can you click the 'Yes' button on the appropriate reply? This will guide all community members who have a similar question.


    Thanks,

    AHS

  • Yes, I have already done it. Thanks. Jianping

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.