[QFJ-874] Session Qualifier for acceptor sessions Created: 07/Jan/16  Updated: 03/Apr/16

Status: Open
Project: QuickFIX/J
Component/s: None
Affects Version/s: 1.2.1
Fix Version/s: None

Type: Improvement Priority: Default
Reporter: Kou Jun Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Hello,

i think, it would be a good idear, to have a session qualifier for acceptor sessions (ConnectionType=acceptor).
If you try to configure two acceptors in separate configuration files (Same fix-version, SenderCompId, TargetCompID) and the only difference is the port number, the configuration will not work if the Message store is in the same directory. They will both use the same message and eventlog files.

Regards
Thomas Hügel



 Comments   
Comment by Kou Jun [ 07/Jan/16 ]

My case is

there are 2 fix session both are acceptor,have separate file store. but the 2 session's fix-version, SenderCompId, TargetCompID are same,only the port number is different,I didn't use property file to config the session but config the 2 sessions in code.

receive message worked well!
but if I use Session.lookupSession(sessionID).send(message);
the 2 session's sessionID is same, so Session.lookupSession(sessionID) always return the session2.

Comment by Dmytro Semenov [ 21/Mar/16 ]

Can you use session qualifier field here? "SessionQualifier Additional qualifier to disambiguate otherwise identical sessions"

Also it will solve JMX problem if you have it. Both sessions will try to expose same MBean otherwise

Comment by Kou Jun [ 03/Apr/16 ]

A SessionQualifier can only be used with an initiator.

Generated at Mon Apr 29 21:09:05 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.