Abidi
Abidi

Reputation: 8006

QuickFIX/J: problem with multiple sessions sharing same data dictionary

I've client app that connects with multiple FIX sessions, each session has its own timezone and properties. What I've noticed is, if I remove one of the session's config. This affects other sessions. For example, if the session I removed had a property AllowUnknownMsgFields, the other sessions would break becasuse somehow they were sharing that property. It's reproduciable all the time. Am I defining config incorrectly?

QFJ Version: quickfixj-all.2.1.0.jar

[Default]
HeartbeatInt=30
ReconnectInterval=5

[Session]
Sender=Sender1
Target=Target1

[Session]
Sender=Sender2
Target=Target2
AllowUnknownMsgFields=Y

Upvotes: 0

Views: 1226

Answers (1)

Christoph John
Christoph John

Reputation: 3293

This is a bug in QuickFIX/J which is going to be resolved in version 3.0.0. We have no release date, though. Problem is that the dictionaries (along with their configured validation options) are cached based on their name.

https://www.quickfixj.org/jira/browse/QFJ-982

https://github.com/quickfix-j/quickfixj/pull/245

As a workaround you could copy your dictionary for the second session and apply the desired validation options.

Upvotes: 2

Related Questions