remote ejb lookup over http using a proxy server
crazycradd Jan 8, 2018 9:54 AMI have recently found a couple of issues that have been fixed these are
Problem with http invocation of ejb and wildfly 11 rmi over http now I have the fixes in place I have tried to invoke the ejb's from behind a proxy server these requests are failing.
I have set up the proxy server on ced12212 on port 3128 and this server can see the server hosting the ejbs on ghvh01.coa.local:4500
If I invoke my client program from the proxy server all works as expected, now if I invoke the client program from another client machine that does not know how to connect to the server it fails as below.
I have passed the proxy params as follows -Dhttp.proxyHost=ced12212 -Dhttp.proxyPort=3128
14:31:21,538 INFO [naming] WildFly Naming version 1.0.7.Final
14:31:21,687 INFO [security] ELY00001: WildFly Elytron version 1.1.6.Final
junit.framework.AssertionFailedError
at com.cedar.cp.tests.util.ConnectionTest.test001localConnection(ConnectionTest.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)
javax.naming.CommunicationException: Connection timed out: no further information [Root exception is java.net.ConnectException: Connection timed out: no further information]
at org.wildfly.httpclient.naming.HttpRootContext.performOperation(HttpRootContext.java:336)
at org.wildfly.httpclient.naming.HttpRootContext.lambda$processInvocation$0(HttpRootContext.java:257)
at org.wildfly.httpclient.naming.HttpRootContext.performWithRetry(HttpRootContext.java:173)
at org.wildfly.httpclient.naming.HttpRootContext.processInvocation(HttpRootContext.java:234)
at org.wildfly.httpclient.naming.HttpRootContext.processInvocation(HttpRootContext.java:228)
at org.wildfly.httpclient.naming.HttpRootContext.lookupNative(HttpRootContext.java:110)
at org.wildfly.naming.client.AbstractContext.lookup(AbstractContext.java:84)
at org.wildfly.naming.client.WildFlyRootContext.lookup(WildFlyRootContext.java:144)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
I get a permission issue if the client knows the server host but I turn on the firewall.
jaikiran do I need to set different properties to get the xnio to use the proxy