I have gone through similar question. but this seems different where the sessions can connect to different hosts.
My question is if we have one quickfixj server and one quickfixj client running. Can we have multiple sessions between them?
sample FixClient
#session 1 config
SocketConnectPort=8225
SocketConnectHost=127.0.0.1
SenderCompID=Sender
TargetCompID=Target
SessionQualifier=FirstSession
......
#session 2 config
SocketConnectPort=8226
SocketConnectHost=127.0.0.1
SenderCompID=Sender
TargetCompID=Target
SessionQualifier=SecondSession
Is this even possible? I have a case where I need to send two types of messages one is a test message and the other is original. Is there a preferred way to distinguish those messages in application code?
[Updated]
When a fix message coming from an quickfixj application say A, which have two sessions A1, A2. and if I need to send messages to Quickfixj application B(in same process which A is running), which then sends to Quickfixj application C(other process). In application C we need to distinguish messages that are coming from A1 and A2. If I make application B to have two session B1, B2 which connects to C1, C2. then when the message comes from A to route to B's sessions. We need to manually store B1,B2 sessionIDs and route accordingly. So here we just want every message that application B gets will simply pass them to C. with some fix tag then we can differentiate test message.