Until this week, my customer had Ensemble writing HL7 messages to my TCP listener, working fine on ageing physical servers (Windows Server 2003, Caché 2009). They had four app servers (app1, app2, app3 and app4) with an overarching DNS simply called "app". Ensemble was connecting to "app:port", and it somehow found whichever of the four app servers my background listener was running on, and the interface worked fine for 10+ years.
They have now moved to shiny new virtual servers (Windows Server 2016, Caché 2018) and now have only two app servers(appv1 and appv1), with an overarching DNS of "appv". However, Ensemble no longer consistently finds the appv server that my listener is running on, so we have had to change the Ensemble connection to always connect to "appv2:port", and the users have to ensure that the listener is also running on appv2. Not ideal, and certainly reduces any resilience capability.
People who are far more knowledgeable about networking than I am have concluded that they don't understand how it used to work, let alone why it no longer does.
Therefore I now need to get my listener running on both servers simultaneously.
For a while I had hopes of using the "joblocation" parameter on the JOB command (a new parameter to me), but it turns out that that only works across ECP, which isn't available at this site.
I'm now thinking that I will need to initiate a login from whichever appv server my background control process is running on (it's random, as it inherits from the interactive user, who lands on whichever server their load-balancer points them to) to the other appv server and JOB the listener on there.
Finally, to my question - how, just using Caché Object Script, do I initiate a login from Caché on appv1 to Caché on appv2, or vice-versa, and then run a specific COS .int routine when it gets there?
I've done similar things, but only swapping namespace on the same app server, never to the same namespace on another app server i.e.
Forgive any howlers in this - I am simply a long-in-the-tooth green-screen Mumpster!