Details
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
- relates to
-
QFJ-165 Allow for dynamic definition of sessions
- Closed