Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TREP APIs /
  • RFA /
avatar image
Question by nicolas.roux · Oct 26, 2017 at 05:25 AM · treprfarfa-apisessionnon-interactive-provider

NIP with 2 sessions

I'm using a NIP to publish on 4 ADH.
In the example named "mdiniprovomm", there are these lines (file LoginClient.java):

        // Note: This code assumes that there is only one login refresh
        // (the Session is configured with one Connection in the connectionList
        // so it only connects to one SrcDist).  If there is more than one
        // Connection, then this could would need to be changed to always
        // call processLogin(true) when there is a refresh.  In general,
        // if applications wish to use two Connections, it is recommended
        // that they use two Sessions.  That way the initial and recovery
        // refreshes will not be sent to Connections that do not need them.
        if ((respMsg.getMsgType() == OMMMsg.MsgType.REFRESH_RESP) &&
                (respMsg.getState().getStreamState() == OMMState.Stream.OPEN) &&
                (respMsg.getState().getDataState() == OMMState.Data.OK) )
        {
                if (!_loggedIn)
                {
                        _loggedIn = true;
                        _mainApp.processLogin(true);
                }
        }
        else if (respMsg.has(OMMMsg.HAS_STATE) &&
                        respMsg.getState().getDataState() == OMMState.Data.SUSPECT)
        {
                if (_loggedIn)
                {
                        _loggedIn = false;
                        _mainApp.processLogin(false);
                }
        }

As I said, I want to publish on 4 ADH. So I have 4 connections.

I don't want to do a dirty workaround and use 1 session for my 4 connections.... So, I was wondering if there's a code sample which already handles multiple sessions?

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.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by zoya faberov · Oct 26, 2017 at 12:14 PM

Hello @nicolas.roux,

Would RFA->OMM->mulitpleConsumers example (illustrates N sessions+logins) be of help to you, or you looking specifically for a multiProvider example ?

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.

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 >
10 People are following this question.

Related Questions

RFAJ8.0 ConfigDb, unable to acquire a Session

Inactive session timeout

RFA.NET - Session.Acquire gives timeout exception when called from server side

Could not instantiate session in Linux environment

Difference between NIP and Posting

  • 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