JBoss EJB Client using HTTP Proxy



我正在尝试使用 jboss-remoting 对只能通过 HTTP 代理访问的 Wildfly 8.2.1 服务器进行 EJB 调用。

它失败如下:

Feb 23, 2016 2:50:34 PM org.jboss.ejb.client.EJBClient <clinit>
INFO: JBoss EJB Client version 2.0.1.Final
Feb 23, 2016 2:50:34 PM org.xnio.Xnio <clinit>
INFO: XNIO version 3.3.0.Final
Feb 23, 2016 2:50:34 PM org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.3.0.Final
Feb 23, 2016 2:50:34 PM org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 4.0.7.Final
Feb 23, 2016 2:50:40 PM     org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector setupEJBReceivers
WARN: Could not register a EJB receiver for connection to 192.x.y.z:443
java.lang.RuntimeException: Operation failed with status WAITING

它试图设置Java System Props,如下所示,但没有使用:

-Dhttp.proxyHost=web-proxy.yyy.xxx.net
-Dhttp.proxyPort=8080
-Dhttps.proxyHost=web-proxy.yyy.xxx.net
-Dhttps.proxyPort=8080
-DproxySet=true

我们正在使用PropertiesBasedEJBClientConfiguration,但我找不到"remote.connection.default.connect.options.org.xnio.Options.*"这样的属性来设置代理。

当前配置:

("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", "true");
("remote.connection.default.connect.options.org.xnio.Options.SSL_STARTTLS", "true")
("remote.connection.default.connect.options.org.xnio.Options.SSL_PROTOCOL", "TLS")
("remote.connection.default.connect.options.org.jboss.remoting3.RemotingOptions.HEARTBEAT_INTERVAL", "600000")
("remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS", "false")
("remote.connections","default")
("remote.connection.default.host", host)
("remote.connection.default.port", port)
("remote.connection.default.protocol", protocol)

我遇到了同样的问题,解决方案是卸载防病毒软件。防病毒软件Bitdefender阻止了Wildfly的通信。

此处请求 EJB 客户端对转发 HTTP 代理的支持:EJB 客户端无法通过 HTTP 代理进行连接。这似乎是XNIO(JBoss Remoting使用的低级I/O库)而不是EJB客户端本身的问题。

最新更新