i'm trying to implement pause and resume on single requested items.
Wich of the attributes other than the ".pause(true)" is required for the RequestMsg.
How to Resume ".pause(false)" or use ".interestAfterRefresh(true).
Sample 350 of ema shows only to pause all interest by pausing the login.
How can I query the information about, if connected infrastruture supports this feature, because OmmConsumer dos not make the content (supported fetures) of the login response transparent.
In the sample, the code for first pause on login-handle actually was commented out. To pause an item, application needs to call reissue with an item's handle. The item's handle typically is returned from registerClient. Application can use it to pause the item instead of retrieving it from update-event.
Anyway, can the application work with pause all? Could you provide the Ema trace file for the item pause? To enable the Ema trace file, please add the XmlTraceToFile parameter in the EmaConfig.xml.
<ChannelGroup> <ChannelList> <Channel> <XmlTraceToFile value="1"/>
Please see the following post on details of how to pause individual items
With regards accessing Login Response content please refer to the 'example 330 Login Streaming' that comes with the EMA package which opens a login stream and then outputs the response message.
thanks for the answer. I still know this article. But the sample also shows pause and resume for any interest by login-handle. I checked the responce of the directory request, and I found out, that the source does not support extended pause/resume. May this the reason, that it not work on individual (single or batch) items.
this sample is a little bit confusing, becasuse thes try first pause on login-handle, and then pause on individulal item by item-handle from update-event.
"_pOmmConsumer->reissue( ReqMsg().domainType( MMT_MARKET_PRICE ).initialImage( false ).pause( true ).name( "JPY=" ), ommEvent.getHandle() );"I tried this in this way, but it still not works.