I have a Swing client that needs to connect to a Wildlfy server.
This works when I can see the server
contextProps.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
contextProps.put("jboss.naming.client.ejb.context", true);
contextProps.put(Context.SECURITY_PRINCIPAL, "admin");
contextProps.put(Context.SECURITY_CREDENTIALS, "password");
contextProps.put(Context.PROVIDER_URL, "http-remoting://servername:port");
If the server sits behind a proxy and I have many Wildfly server behind it I need to identify which server to route the traffic to. I added the application context to the URL but this does not seem to get passed.
contextProps.put(Context.PROVIDER_URL, "http-remoting://proxy server name:proxy server port/cp");
I can detect the Upgrade header (acl cp_jboss hdr(Upgrade) -i jboss-remoting ) but I can only route this traffic to 1 server what if I had 2 different apps behind this proxy.