I am creating the quickfixj initiator configuration dynamically in the code. Everything else works fine except that I have 2 host ips. With the old config file, it knows to round robin between my host and host1 ips. But with the new dynamically created settings, it always try the host, doesn’t know how to go to the host1 ip.
I am doing as simple as follows:

settings.setLong("SocketConnectPort", 5000)
settings.setLong("SocketConnectPort", 5000)

Anyone had experience with this before?
Any suggestions?