Imported from previous forum
I am using QuickFix/J
Currently, the example provided in QuickFIX/J, only allow single executor to talk with single banzai.
From the settings in configuration file :
(For Banzai)
[default]
FileStorePath=examples/target/data/banzai
ConnectionType=initiator
SenderCompID=BANZAI2
TargetCompID=EXEC
SocketConnectHost=localhost
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=30
ReconnectInterval=5
TargetSubID=aaa
CheckCompID=N
[session]
BeginString=FIX.4.2
SocketConnectPort=9878
(For Executor)
[default]
FileStorePath=examples/target/data/executor
ConnectionType=acceptor
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=30
ValidOrderTypes=1,2,3,4,F
SenderCompID=EXEC
TargetCompID=BANZAI
UseDataDictionary=Y
DefaultMarketPrice=12.30
[session]
BeginString=FIX.4.2
SocketAcceptPort=9878
Their behavior is as follow :
Executor - I only allowed single connection from someone called Banzai
Banzai - My name is Banzai, and I will only connect to Exectuor
I would like to change the behavior of them to as follow :
Executor - I allow connection from anyone.
Banzai - My name is <generated_through_runtime_dynamically>, and I will only connect to Exectuor
May I know how I can achieve that?
I try the following :
http://www.quickfixj.org/confluence/display/qfj/Implementing+Custom+Logons (Is this the correct way to have dynamically generated session?)
with only changing the code at Banzai side, and leave configuration file untouched, the connection wouldn’t be allowed.
Is there other things else I need to change?
(1) Executor’s code
(2) Configuration file for executor and banzai
Thanks!