Uploaded image for project: 'QuickFIX/J'
  1. QuickFIX/J
  2. QFJ-221

Extend dynamic creation of sessions to have template IDs for each FIX version

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Default
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.3.0
    • Component/s: Engine
    • Labels:
      None

      Description

      This is an extension to QFJ-165.
      Currently the way to allow for dynamic sessions is to use and specify a set of session settings and a template SessionID that will drive the creation of new sessions dynamically.

      That works great as long as all the new sessions are of same FIX version and need the same data dictionary file.

      However, if you want to support different FIX versions coming across the same acceptor connection this paradigm breaks down, since only the data dictionary of the template session will be used.

      The simple solution is to use a Map of templateIDs --> SessionSettings, with different settings for each corresponding session id. Then you look up the appropriate template ID based on the incoming FIX version and use the corresponding settings.

      Not sure if this simple approach has a similar (but yet undiscovered) future drawback....

      Workaround:
      In client code, you can subclass from DynamicAcceptorSessionProvider and override the getSession() method to overwrite the value of Data dictionary path to be the right version.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                admin Steve Bate
                Reporter:
                toli Toli Kuznets
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: