Hello,
i have a java client which calls methods on the remote interface of an EJB app over HTTPS on wildfly.
Therefore i use Wildfly HTTP Client (in wildfly-client-all-27.0.1.Final.jar) , java 21 (zulu jre) and Wildfly 37.0.0.
The URL of the application server is set as Context.PROVIDER_URL in the format
https://servername:443/myservice (i changed the http-invoker path to value=myservice) and not the "remote+https" one.
Then i lookup the EJB via new InitialContext(env).lookup(jndiName) using the INITIAL_CONTEXT_FACTORY, "org.wildfly.naming.client.WildFlyInitialContextFactory".
No other configuration on the client side.
This works perfect, on a local docker container and even on a server behind a nginx reverse proxy.
But when the connection has to use a proxy server set in the java system properties, this will be ignored an the Wildfly HTTP Client tries a direct connection.
Does anyone has a solution or at least a clue where to start?
Best regards, Timo