Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • EMA /
avatar image
REFINITIV
Question by gang.chen1 · May 17 at 01:22 AM · ema-api

Register multiple batch request

Hi Team,

There is a 65535 byte limit on the size of the ElementList entry that is used when making the Batch request for EMA API. Could you pls give us a demo how to send another Batch request if the RIC list exceed 65535 byte ?

BTW, what is the meaning of consumer.unregister(arg0);

thanks

Gang



People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by wasin.w · May 19 at 09:06 AM

Hello @gang.chen1

According to the EMA Java API Reference document, the OmmConsumer's unregister function accepts the handle value as an input parameter to specify which stream the application wants to close.

ema-unregister.png

The EMA API assigns all opened items or instruments a unique numeric identifier (e.g. long), called a handle, which is returned by the OmmConsumer.registerClient() call. A handle is valid as long as its associated item stays open.

Note: The EMA Java API Reference document at the <RTSDK package>\Java\Ema\Docs\refman\emajava folder.

However, for the batch subscription, the API automatics unsubscribe the batch stream for the application (this is why the application receives the "Stream closed for batch" message), so the application does not need to call OmmConsumer.unregister(batch_handle) manually.



ema-unregister.png (12.6 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by raksina.samasiri · May 17 at 04:08 AM

hi @gang.chen1 ,

For sending multiple batch requests, could you please check the answer provided in this thread


Comment

People who like this

0 Show 3 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
gang.chen1 · May 17 at 04:43 AM 0
Share

Hi samasiri,

Thanks and I saw that before. Double confirm we can just send consumer.registerClient again and again ? and no need to call consumer.unregister(arg0) in the middle ?

finally, what is the usage of consumer.unregister(arg0);

thx

avatar image
REFINITIV
raksina.samasiri ♦♦ · May 17 at 05:08 AM 0
Share

hi @gang.chen1 ,

regarding the meaning of consumer.unregister(arg0);

you may check the documentation provided in Message API - Java: Development and Configuration Guides with Examples > EMA J RDM Usage Guide

page 7. mentioned that OmmConsumer.unregister() is the Close Message (Request)

1652763741956.png

Page 9. for the general domain use,

When the consumer is no longer interested, it sends an CloseMsg to close the stream
1652764015241.png

1652764015241.png (158.2 KiB)
1652763741956.png (141.4 KiB)
avatar image
REFINITIV
gang.chen1 raksina.samasiri ♦♦ · May 17 at 06:54 AM 0
Share

Hi Samasiri,

Thanks and what is the arg0 parameter should be? seems no explanation for it , or just call consumer.unregister();

thx

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
7 People are following this question.

Related Questions

Refinitiv Real-Time -- Optimized

configure channel set using programmatically

ATS_INSERT_S fails via EMA PostMsg

Elektron-SDK-1.4.0.L1.java.rrg - Override NI_PUB default serviceName

How to avoid timeout status messages

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • FX Venues
    • FX Trading – RFQ Maker
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • Yield Book Analytics
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges