我正在尝试使用jboss-remoting对Wildfly 8.2.1服务器进行EJB调用,该服务器只能通过HTTP代理访问。
它失败了:
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)
答案 0 :(得分:0)
我遇到了同样的问题,解决方法是卸载防病毒软件。防病毒软件Bitdefender阻止了Wildfly的通信。
答案 1 :(得分:0)
此处请求EJB-Client cannot connect by HTTP-proxy的EJB客户端对正向HTTP代理的支持。 XNIO(JBoss Remoting使用的低级I / O库)似乎是问题,而不是EJB客户端本身。