When you call the getJndiContext(jndiProviderUrl) method, supposed, the JNDI provider url is updated not just at the connector but also its value in the JNDI context. The latter is not updated however, see patch and test case for details.
I discovered this while writing a test case for RMI transport.
Whoever takes this on, I think the JNDI Connext setup should happen in the doConnect method so we can also do reties if the server becomes unavailable